Print an array of values from 256 textboxs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mshaheli
    New Member
    • Jul 2013
    • 1

    Print an array of values from 256 textboxs

    I have 256 textboxs and I want to take values from that to an array and print it.
    Last edited by Frinavale; Jul 10 '13, 01:32 PM.
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You can use the document.getEle mentsByTagName( tagname) method to retrieve all inputs in your page.

    Then you can loop through the results and check the type of the elements you retrieved. If the type is "text" then you know it's a textbox.

    You should be able to print your values from that.

    -Frinny

    Comment

    Working...