tags:

views:

16

answers:

1

I'm using this jquery plugin http://www.erichynds.com/jquery/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.

A: 
$(".ui-multiselect-optgroup-label").click(function() {
  $(this).nextUntil(".ui-multiselect-optgroup-label").toggle();
});
elektronikLexikon
Thanks. That did the trick. I had to add a few things in the JS to make sure the items in the optgroup weren't checked when you clicked the header, but that did the job.
Chris
Anyone else notice that by checking the checkboxes, the DOM isn't updating with the event?
Chris