Jquery Ui Multiselect Widget Clear All Check Boxes
Hopefully a quick one... I need to fire the uncheckAll event in the click event of a separate button on my page, I have tried the following: $('.masterProviderOrgsListBox').multise
Solution 1:
Methods
After an instance has been initialized, interact with it by calling any of these methods:
// example: $("#multiselect").multiselect("method_name");
...which can be found in the widgets documentation under Methods
$("#multiselect").multiselect("uncheckAll");
Solution 2:
1) first, you need to set default value of the control.
jQuery('#multiselect').val("");
2) Then, execute below code to reset the control.
jQuery('#multiselect').multiselect("refresh");
Solution 3:
$("#multiselectoption:selected").removeAttr("selected");
$("#multiselect").multiselect('refresh');
refresh should be call after clearing the drop down.
Post a Comment for "Jquery Ui Multiselect Widget Clear All Check Boxes"