Use knockout js, and add it to responsivedialog.html file. This observing method should add a generic and dynamic data binding for input elements.