I have created a list box which is multiple selectable as below:
<td rowspan="20">
<html:select property="doneTypeform" tabindex="<%=(i2++).toString() %>" multiple="multiple" size="35">
<html:option value="">--Please Select--</html:option>
<html:optionsCollection name="doneTypeCol"/>
</html:select>
</td>
I want to add checkbox for each item in the list box. How can I achieve this?
Edit:
Something like this: http://code.google.com/p/dropdown-check-list/
<script src="jquery.js"></script>
<script src="dropdownchecklist.js"></script>
<script>
$(document).ready(function() {
$("#select_id").dropdownchecklist();
});
</script>
How can I add select_id when I don’t have id attribute.I tried with property but its not working
If what you are referring to is the
html:selecttag, it has astyleIdattribute that you can use.