niao
niao

Reputation: 5070

jquery multiselect - checkbox for <optgroup>

I am using a jquery multiselect plugin http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ with option. All works fine, however one of the client requirement is to have a checkbox in the option. Does anyone know how to do this?

Te case is that I want to have the checkboxes in all options like here:

[] England <-This is <optgroup>
   []London
   []Leeds
   []Manchaster

so, "England" is the title for my and I want it to also have a checkbox.

Upvotes: 0

Views: 2708

Answers (1)

LoveAndCoding
LoveAndCoding

Reputation: 7947

So, this funcitonality is not available by default with the plugin you are using. If you want to add it, you will either need to hook into their events (I'd recommend the create and optgrouptoggle events), add it in manually to the source code (line 145 is what you're looking for in the non-minified version) and then also hook into their optgrouptoggle event and mark it checked, or file it as an enhancement in their bug system.

Upvotes: 1

Related Questions