Click to See Complete Forum and Search --> : validating a text field


Masterbas
04-23-2003, 02:06 PM
my problem isnt with the validating process, the first time someone enter a wrong value, it tells them, but if the person enter the exact same value, the script doesnt run, like if js got the value somewhere saying that it's the value currently in the field, even if I changed the field in the script the first time he entered the wrong value, how do I force js to do the onchange everytime

khalidali63
04-23-2003, 02:15 PM
you can invoke a validating function from the textfields onkeyup event....that way every time an entry is added or removed it will be validated

Masterbas
04-23-2003, 02:29 PM
woot thanks a lot, just had one bug with that, but it was easy to repair, I think I wont forget that one :).