开发者

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();
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜