• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

auto-populate a textbox

 
Ranch Hand
Posts: 193
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know how to populate a textbox based on a value the user selects in a comboBox? For instance, when a user selects "Choice A" from the comboBox, I want the textBox to be populated with the text "GOOD CHOICE". If user selects "Choice A", the textBox is populated with "BAD CHOICE". I am really stuck. Thank you. Higgledy
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, it's important to use proper terminology. There's no such thing as a "combo box" in HTML. Read: HtmlHasNoComboBox

Second, where's the code you've tried so far? We're more than happy to help, but we won;t write the code for you. To get you started, obviously you'll need a change handler on the select element.
 
reply
    Bookmark Topic Watch Topic
  • New Topic