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
Post a Comment