|
| |
|
|
Wendy P
Posts: 17 From: Timmins, Ontario, Canada Status: offline
|
Detecting a change in a text box - 6/27/2001 17:26:00
HiDoes anyone know how to make a change in one field (say set a text to '1') if the contents of another text box has changed? Ie...when a user makes a change to data displayed in a text box, another text box is set to '1' I don't care what they user has changed, I just want to know when a change takes place. Thanks Wendy
|
|
|
|
davebukouricz
Posts: 300 From: Ma None Status: offline
|
RE: Detecting a change in a text box - 6/27/2001 18:40:00
You could try this which will test the onchange event of the form. Paste it into notepad, save as a .htm file and try it<html> <head> </head> <body> <center> <form name="Changeform"> <input type="text" name="caps" size=40 value="" onChange="javascript:Changeform.T1.value=1"><input type="text" name="T1" size="20"> <br> <input type="button" value="Ok!"> </form> </center> </body> </html>
[This message has been edited by davebukouricz (edited 06-27-2001).]
|
|
|
|
davebukouricz
Posts: 300 From: Ma None Status: offline
|
RE: Detecting a change in a text box - 6/27/2001 20:40:00
On further reflection, that's not going to work, as it will throw a 1 no matter what the input to the text box is. More research needed for this one
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|