How can I add or remove options in JQuery UI Multiselect ? I am initializing the multiselect on page load and I need to remove existing values and add new values based on anothe
function setMultiSelect(idElement, paramVal){ eval("$('#"+idElement+"').multiselect('uncheckAll')"); $.each($('input[name="multiselect_'+idElement+'"]'), function(k,i) { if(paramVal.indexOf(this.value)!=-1){ this.checked = true; } }); eval("$('#"+idElement+"').multiselect('update')"); }