asp.net - jQuery Dropdown Check List -


i trying implement dropdown check list found here on asp.net listbox control. renders control dropdown, , applies css. however, instead of options being check boxes expected, radio buttons. have ideas why happing when have working html multiple select control absolutely fine?

thanks

the documentation jquery dropdown check list states reason why happening:

the dropdown list composed of checkboxes multi-select elements, , radio buttons single-select elements.

so if want check boxes, need specify multiple attribute on <select> tag, this:

<select multiple>     <option value="a">a</option>     <option value="b">b</option>     <option value="c">c</option>     <option value="d">d</option> </select> 

since using asp.net server control (listbox), need set selectionmode property of list box multiple, this:

<asp:listbox runat="server" id="listbox1" selectionmode="multiple"></asp:listbox> 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -