How to create a drop-down list with checkboxes inside it using simple HTML and javascript? If this is not possible, could it be possible to fulfill this requirement with C # .net? Please help me.
Try this . It turns a few items into checkboxes.
Something like this ?
or can always use jQuery / javascript plugin like this
Create your own DropDownList.
HTML / JS approach:
<html> <head> <title>Scrolling Checkboxes</title> <script type="text/javascript"> </script> </head> <body> <div id="ScrollCB" style="height:150;width:200px;overflow:auto"> <Label><input type="checkbox" id="scb1" name="scb1" value="1" />First Item</Label><br /> <Label><input type="checkbox" id="scb2" name="scb2" value="2" />Second Item</Label><br /> <Label><input type="checkbox" id="scb3" name="scb3" value="3" />Third Item</Label><br /> ... </div> </body> </html>
You can try it here: http://jsfiddle.net/aUQdW/
In the checkbox in C sharp, you should use the CheckedListBox from Windows Conntrol. Using some properties, you can get what you want. You can set Checked-Unchecked for an item in the list.