my dog learned polymorphism*
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15376
Basic idea:

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

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: display values chosen from dropdown
Similar Threads
Question on RELOAD of JSP page AFTER facesMessage fixed
drop down list problemt - Pls Help
onchange event of drop down list - problem F1 pls
jsp + dropdown + automatically populate the vales from the db in the Text box