Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
January 25, 2005, 12:40 pm
rate this thread
I'm in the middle of adding some validation functionality to an inventory
What I would like to do is have one dropdown menu/Listbox(Part Number) and
another text field (Product Description).
When the user selects an item from the drop down (IE 12S0FB) it will
autopopulate the text field with a description of the product. At the
moment I will hard code the values in. Can anyone help me out here?
Re: Selecting list item to auto-populate text fields
// get the ID of the text box
// use document.myform.options[document.myform.myitem.selectedIndex].value
// to resolve text to insert
<option value="item1">Item #1</option>
<option value="item2">Item #2</option>
Don't try it as it's not tested. It's the idea that counts.
PS - Please don't make corrections, guys. It's just a rough example...
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum