jQuery optgroups show/hide
I'm using this jquery plugin http://www.erichynds.com/jquery开发者_StackOverflow/jquery-ui-multiselect-widget/ I have several optgroups for this application, some of which have options of more than 50 to go with an optgroup. Is there a way to be able to hide an optgroup when the user clicks on the heading?
Thanks.
$(".ui-multiselect-optgroup-label").click(function() {
$(this).nextUntil(".ui-multiselect-optgroup-label").toggle();
});
精彩评论