Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass value form a select box to a text box

Status
Not open for further replies.

novice2002

Programmer
Feb 18, 2002
10
TT
how to pass the value selected from a select tag to a text box??
 
Hi novice2002,

you mean from a combobox to a text box?
Just make a cicle with all elements of the combo from the first to the last ...no, forget it, much better and easier:

just use the combobox_change() and here, place the textbox.text= combobox.SelectedItem.text
As easy as that.

Or if you prefer,
use a command button and only when you click on that button, you assume the combobox option has been chosen.
So, instead of the combobox_change() use the commandButton_click() and then, do the bold code here.

Good work ===================
* Marta Oliveira *
===================
marta100@aeiou.pt
-------------------
CPC_TA- Braga
-------------------
Portugal
===================
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top