tags:

views:

50

answers:

5

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.

+2  A: 

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

Robert Harvey
A: 

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.

David Thomas
A: 

Or you could even use dragable checkboxes.

Mark
A: 

You can also do this using JavaScript if you want to keep the ListBox rather than use CheckBoxes.

AverageAdam
A: 

I'd use jquery for any kind of custom ui or form elements. There are tons of form plugins for jquery. Check it :)

http://plugins.jquery.com/project/Plugins/category/20

John Himmelman