jquery - How do i remove all option from multiselect2side select box? -
i used jquery multiselect2side select box. used below code add option
$("#myselect").multiselect2side('addoption', {name: opiontitle, value: libraryvalue[i].uri, selected: false});
in same way, want remove option select box. used below jquery script remove. not working
$("#myselect").empty();
after empty need destroy , again initialize plugin. hope works you.
$('#myselect').empty().multiselect2side('destroy'); $('#myselect').multiselect2side();
Comments
Post a Comment