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 display values chosen from dropdown 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 "display values chosen from dropdown" Watch "display values chosen from dropdown" New topic

display values chosen from dropdown

shah rah
Ranch Hand

Joined: Jan 04, 2007
Posts: 124
I have a dropdown and user can only choose 3 items from dropdown. Each time the user choses I need to display it in a "ui" tag near the dropdown.
Also, the user cannot choose more than 3 values. How can this be done?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Basic idea:

Hopefully you can figure how to set the innerHTML of the li's

I agree. Here's the link:
subject: display values chosen from dropdown
It's not a secret anymore!