Basic Demos

Both multiselects are created with the following one-liner. Optgroup support is built in out of the box:

$(function(){
   $("select").multiselect(); 
});

Basic

With Optgroups

Click on an optgroup's heading to toggle the checked state of the entire group.