开发者

I need a select box with checkboxes for each item. Any recommendations on a jquery-ui plugin?

开发者 https://www.devze.com 2023-01-07 02:29 出处:网络
I need a html \'control\' similar to \"CheckedListBox\" from WinForms: <select> <optgroup> &开发者_开发问答lt;option>Item 1</option></optgroup></select>

I need a html 'control' similar to "CheckedListBox" from WinForms:

<select> <optgroup> &开发者_开发问答lt;option>Item 1</option></optgroup></select> 

where each item (and group) has a check box which can be individually checked/unchecked with callbacks.

Has anyone found a jquery-ui or other option for accomplishing this?

Thanks!


I don't believe you can do that with a standard select box, but if you make it into a custom select box and then add in your input checkboxes to the items, you could probably achieve what you desire. Do some searches for a jquery custom select box to find what suits you. Here a just a couple I found (untested, and thus not necessarily recommending...)

http://www.mypocket-technologies.com/jquery/SelectBoxPlugin/

http://dervish.wsisiz.edu.pl/~suszynsk/jQuery/demos/jquery-selectbox/

0

精彩评论

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