I am creating an ASP.NET MVC application that has postcode lookup functionality. I capture the postcode from the user send it to a web service and have an array of addresses returned. I would like to display the array of addresses in something like the jQuery UI Dialog. The user can then select the correct address which is returned and populates the address fields. Is this possible using the dialog?
I am creating an ASP.NET MVC application that has postcode lookup functionality. I capture
Share
You will need to format the array as a JSON object and then read it with $.getJSON for example. It is easy to populate a combo box with the content of an array.
You can have the combo box inside a UI dialog – it is the same as if the combo box were always visible. In fact the dialog is just a part of the DOM being shown and hidden. It isn’t any different from other DOM elements.