Forms - Dropdown

How to create a dropdown that can have multiple options using checkboxes. Can we do this with html / css or is javascript required? For visual clarity, you can take a look at the image I have attached.
link to image

0


source to share


2 answers


This is not possible with pure XHTML and / or tag only. The panel that opens up with all these checkboxes on the site where you screeshot off actually has an absolute position and contains a list of checkboxes. For this, you need to write your own xhtml structure. And you will need to add javascript for everything to work and interact.



0


source


You can see the source code of the HTML site in the screenshot. There it is done with Javascript. I doubt this is possible with pure HTML and I cannot think of a way to do this with CSS.



+1


source







All Articles