Closed liuliang closed 11 years ago
Sorry, what do you need?
$.ajax({
url: "images.json"
}).done(function(data) {
$.each(data, function(key, value) {
$('#mySelect')
.append($("<option></option>")
.attr("value",key)
.text(value));
});
});
After you have modified the original select you can "resync" it like this:
$("select").data("picker").sync_picker_with_select()
how can i changed options