Seven price
asked on
Jquery get value dropdownlist
$(window).load(function () {
$(function () {
$.getJSON('@Url.Action("List", "Search")', function (result) {
var ddl = $('#ID');
ddl.empty();
$(result).each(function (i, item) {
ddl.append(
$('<option/>', {
value: this.ID
}).html(this.Description)
);
});
});
});
I am using Jquery mobile. When I first go to the page the data loads, When I click a button and leave the page then come back I see the data in my Dom but it does not load back into the dropdown. anyway to fix this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER