File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes select multiple Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "select multiple " Watch "select multiple " New topic

select multiple

Sudhir Bangera
Ranch Hand

Joined: Oct 10, 2000
Posts: 50
Can someone tell me if it is possible to have multiple select option, but the user should not hold down ctrl or shift key to select the multiple items ?
Each selection will be like a toggle i.e. if the user clicks once on the item, it gets selected and if he clicks again then it gets deselected but again no holding the ctrl or shift key.
Charlie Sturman
Ranch Hand

Joined: Apr 04, 2002
Posts: 112
Building a custom select options is pretty ez for newer browsers.
For an example of a 3 way select options:
Note wait for the dictionary to load (10 seconds first time) then click on Anagram.The Candidate table on the left uses a 3 ways select:
In Out And/Or
Sudhir Bangera
Ranch Hand

Joined: Oct 10, 2000
Posts: 50
Thanks Charlie...appreciate your help....have a great day.....sudhir
I agree. Here's the link:
subject: select multiple
jQuery in Action, 3rd edition