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.
Printable View
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.
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