This is a discussion on "Option values" within the JavaScript Forum section. This forum, and the thread "Option values are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Option values
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Option values
Below is a option and a text box , well basicly what i wanted to do is whenever the user chooses a option , the value would be shown on the text box
Wanted output : option = Women suit text box = 4 Hope you guys could help me out. Thanx in advance /* <td width="128"><select size="1" name="cboItem1"> <option selected>None</option> <option value="4">Women Suit</option> </select></td> <td width="71"><input type="text" name="txtItem1UnitPrice" size="7" value="0.00"></td> */ |
|
|
|
||||
|
Re: Option values
When should the selected option be displayed? On the next page-load? Or instantly? Do you want to use php or javascript or what?
I'm not sure how to do it with javascript but with PHP it works like this:
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
|||
|
Re: Option values
Quote:
|
![]() |
| Tags |
| forms, input, values |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Option values | AdINo | Web Page Design | 3 | Jul 6th, 2007 10:09 |
| How to put bookmark option in my website | lekha | Starting Out | 1 | May 12th, 2007 11:47 |
| Setting Form Values to Previously Entered Values | masonbarge | PHP Forum | 6 | Oct 17th, 2006 17:36 |
| Assign string values to integer values of a session variable | Andy K | Classic ASP | 1 | Jul 13th, 2005 08:29 |
| I need help with the Select Option..... | courtjester | JavaScript Forum | 6 | Nov 19th, 2003 14:34 |