sureshcd10
Regular
- Joined
- Dec 25, 2003
- Messages
- 77
I have one TextBox say txtBox1 followed by a DropdownList --ddl1 and another textBox2 below that.
Now the user types a name into textBox1 and then selects one Item from the dropdown list.Now if the selected dropdownItem's index is 2 I want to copy textBox1.Text to TextBox2.Text. other wise TextBox2.text is to be cleared.
Can some one urgently help me with a javascript function to do this ?
Iam using asp.net with VB.net coding
Now the user types a name into textBox1 and then selects one Item from the dropdown list.Now if the selected dropdownItem's index is 2 I want to copy textBox1.Text to TextBox2.Text. other wise TextBox2.text is to be cleared.
Can some one urgently help me with a javascript function to do this ?
Iam using asp.net with VB.net coding
Last edited: