• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

List options....

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a servlet which uses html form field tag for selecting a list of choices, My question is if i want to have the option of having other than the select choices, what would be the best solution. Is there any tag/ anything that i can add to the html tag.
Thanks,
 
henley
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create an option in the list with the value of "other". Create a text field to the side for "Other" choices. Put logic in your servlet that gets the value of the textfield if the value of the list is "other".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic