Results 1 to 2 of 2

Thread: object not found

  1. #1
    Guest
    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.

  2. #2
    Fanatic Member Ianpbaker's Avatar
    Join Date
    Mar 2000
    Location
    Hastings
    Posts
    696
    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


    Yeah, well I'm gonna build my own lunar space lander! With blackjack aaaaannd Hookers! Actually, forget the space lander, and the blackjack. Ahhhh forget the whole thing!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width