It is possible to create checkbox inside combo box
checkbox inside combo box using html and j开发者_Python百科avascript is possible? I have tried it doesn't works..
Plain HTML does not allow check boxes inside <select>
elements.
However, depending on your requirements, you might be interested in this jQuery UI plugin.
No, you can't put put check boxes into combo boxes. If you want the user to be able to select multiple items, I suggest you make a list of check boxes instead.
You can use a select box, and define its size
, and set multiple=multiple
.
<select size="7" name="sports" multiple="multiple">
<option>Football</option>
<option>Baseball</option>
</select>
That way, you'll have a list of items, and you can select multiple ones.
精彩评论