Reputation: 5599
I am using jQuery plugin msDropdown for displaying dopdown-lists with images.
I try to dynamically add an option and to refresh a msDropdown dropdown list , I tried
dropdown.add(json_row);
dropdown.refresh();
dropdown.set("selectedIndex", new_index);
dropdown.refresh();
I have issues :
Do you know how to make it quickly and efficiently?
Upvotes: 0
Views: 400
Reputation: 34
it takes several seconds to add the row (really too much time)
I leave a site if you see something
it doesn't display the icon , just displays text
In the json_row not set "image" parameter.
it doesn't set the new index
oDropdown.on("change", setSelectedIndex);
//setSelectedIndex It is a function to execute dropdown.set("selectedIndex", new_index);
Upvotes: 0