I use this library (http://labs.abeautifulsite.net/archived/jquery-multiSelect/demo/) for creating a multiple-select dropdown. I want to update the list of options, and I see that a method exists called multiSelectOptionsUpdate(JSON), but I can’t find a way to use it.
I have tried this:
var myOptions = {
"Value 1" : "Text 1",
"Value 2" : "Text 2",
"Value 3" : "Text 3"
};
$("#DropDownList3").multiSelectOptionsUpdate(myOptions);
…But I haven’t had any luck.
Can anyone help me use this?
// Update the dropdown options
multiSelectOptionsUpdate: function(options) {
buildOptions.call($(this), options);
},
I solve this by doing like this: