How to design a dropdown list that can have multiple selections using checkboxes. Can we do it using html/css or it requires javascript? For a visual clarity you can have a look at the image I have attached.
image link
views:
125answers:
2
+1
A:
You can have a look at the HTML source code of the site on your screenshot. There it is done with Javascript. I doubt this is possible with pure HTML and I can't imagine a way to do this with CSS.
schnaader
2008-11-11 08:42:34
A:
This is not possible with pure XHTML and/or only the tag. The pane that opens up with all those checkboxes in the site you took a screeshot from, is actually a that has an absolute position and that contains a list of checkboxes. So you'll need to write your own xhtml structure to achieve this. And will need to add some javascript to make it all work and interact.
postback
2008-11-11 09:26:04
Any website which provides a tutorial to create this kind of dropdown list?
Shivanand
2008-11-11 10:51:22
Not really. I'd suggest a peek at jQuery, see if it has something similar to what you want in the addons, then inspect it, or tweak one to make what you want. As schnaader said, you can peek at exactly how they did it by viewing the source.
scunliffe
2008-11-11 11:46:12