how can i make a form where you dont need to hold down control key to select multiple options ?
i want to make it so that when you just click on any of the options, they will be highlighted.
how can i make a form where you dont need to hold down control key to select multiple options ?
i want to make it so that when you just click on any of the options, they will be highlighted.
Create a list of checkboxes instead of using a list box: http://www.siteexperts.com/tips/html/ts16/page1.asp
This List Box containing checkboxes will also work:
JavaScript ListBox Control
http://www.codeproject.com/KB/scripting/List_Box.aspx
I don't think it's an option in regular html. I'd suggest, though, that in many cases it might be easier to use checkboxes to allow for multiple items in the same list to be selected. To my mind it's also easier from a UI point of view.
Perhaps Javascript has an option, though? I wouldn't be surprised.
You can also do this using JavaScript if you want to keep the ListBox rather than use CheckBoxes.
I'd use jquery for any kind of custom ui or form elements. There are tons of form plugins for jquery. Check it :)