PDA

Click to See Complete Forum and Search --> : object not found


Sep 8th, 2000, 09:10 AM
Hi:

I have 2 textboxes on my form.
When i check this.text1.value.length, i get the above error.

Could anyone let me know how to solve this? Also when would a onchange event take place?
Thanks.

Ianpbaker
Sep 8th, 2000, 09:53 AM
hi sarun

try doing it like this

var mytextbox;
var lengthoftext;

mytextbox = this.text1.value
lengthoftext = mytextbox.length;

As for the onchange event, if someone leaves a text box and you want to immediatly check what they have put in there you can use the onchange event

hope this helps

ian