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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -