1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Javascript- How to address multiple TEXT boxes

Discussion in 'Software Development' started by islandpilot, Jul 19, 2006.

Thread Status:
Not open for further replies.
  1. islandpilot

    islandpilot Thread Starter

    Joined:
    Apr 17, 2004
    Messages:
    16
    Hey gang,

    Am familiar with the Javascript syntax for multiple images -
    document.images[1].src ....

    but....how does Javascript address multiple text boxes
    within a form using the Bracket syntax??

    I have 10 text boxes, and want to address them in
    a relative, not absolute, way. [0] [1] [2] etc

    Thanks!
     
  2. brendandonhu

    brendandonhu

    Joined:
    Jul 8, 2002
    Messages:
    14,681
    document.forms[0].elements[0]
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/484563

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice