The Artima Developer Community
Sponsored Link

Design Forum
is there something like combo-box in form elements?

1 reply on 1 page. Most recent reply: Sep 30, 2002 1:37 PM by bree vanoss

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Sid Northfield

Posts: 20
Nickname: northfield
Registered: Aug, 2002

is there something like combo-box in form elements? Posted: Sep 27, 2002 11:25 AM
Reply to this message Reply
Advertisement
I am programming in JSP.
I want to know if there is a form element in tags
that is similar to drop-down (option) list but allows the user to type an alternative if the choices is not in the list.

I know there is such a thing in java, which I think is called a combo-box but is there one in form elements?


bree vanoss

Posts: 9
Nickname: bree
Registered: Sep, 2002

Re: is there something like combo-box in form elements? Posted: Sep 30, 2002 1:37 PM
Reply to this message Reply
There is not an equivalent to the combo-box in html. Your best bet is to use an option list and a text field. You could add a bit of simple javascript that would only allow text in the text field if a specific option, like "other", is selected, and/or auto-select the "other" option if some text is entered into the textfield.

of course you would want to validate this on the serverside too.

for what it's worth.

-=bree

Flat View: This topic has 1 reply on 1 page
Topic: Applet-Servlet Vs RMI Previous Topic   Next Topic Topic: help with wine aromas database

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use