File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html:select and editable text box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:select and editable text box" Watch "html:select and editable text box" New topic

html:select and editable text box

Hideki Mae

Joined: Oct 19, 2004
Posts: 14
Is there a way to have an editable text box with the html:select tag?
For example, let's say I have a drop down list and the list contains pre-defined entries that can be put into the database. I was wondering if it's possible to make the text box editable as well so that the user can put in a new value, one that is not predefined.

Thank you for all your help.

Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

I'm sorry. html does not allow this.

Your best option might be to use radios or checkboxes. The last box would have a label of "Other:" (or something similar) and would have a textfield nearby.

A good workman is known by his tools.
I agree. Here's the link:
subject: html:select and editable text box
It's not a secret anymore!