File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Help with multiple selections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Help with multiple selections" Watch "Help with multiple selections" New topic
Author

Help with multiple selections

Adam Bjernod
Greenhorn

Joined: Oct 22, 2011
Posts: 3
Hi everyone!

I completely new to javascript, so I need some help, please

I have a rather long list of words or phrases that i want to be selectable and de-selectable. When the user presses submit the selected words/phrases should be sent in a form using GET/POST

Make any sense? And can any of you help?

Thanks!

Abj
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

Why do you think you need Javascript, instead of (say) an ordinary HTML multiple selection?
Adam Bjernod
Greenhorn

Joined: Oct 22, 2011
Posts: 3
Because i would like to be able to style the appearance and also make categories
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63060
    
  69

In that case you should investigate jQuery UI Selectables which can make any DOM element "selectable".


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Adam Bjernod
Greenhorn

Joined: Oct 22, 2011
Posts: 3
I found this "[link removed]" - I like the "Fancy JavaScript method" with CSS styling, but i can't make it work with the sourcecode he is giving...
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63060
    
  69

The author has a contact page, I suggest you contact the author regarding any problems you are having with his code.
 
Consider Paul's rocket mass heater.
 
subject: Help with multiple selections
 
It's not a secret anymore!