Results 1 to 2 of 2
Thread: Two fields one button
Aug 13, 2007, 01:36 #1
Two fields one button
I have two textboxes and one search button on my form.
What I want to be able to do is if I have text in one field and then go to the other one and start typing more text, to clear text out of the other one and visa versa.
I want to be able to have two search fields but only one search button.
Quite new to .NET so would appreciate any help
Aug 13, 2007, 07:25 #2
- Join Date
- Nov 2005
- Omaha, NE
- 0 Post(s)
- 0 Thread(s)
<input name="field2" id="field2" type="text" onKeyDown="document.getElementById('field1').value = '';">
Is that what you are looking for?
Last edited by darkwater23; Aug 13, 2007 at 07:26. Reason: clarity