Iterating through same form elements

Posted by Hulk on Stack Overflow See other posts from Stack Overflow or by Hulk
Published on 2010-03-24T06:34:25Z Indexed on 2010/03/24 6:43 UTC
Read the original article Hit count: 240

If a form has same tag repeatedly.

How to get its value in javascript.

    <script>
     function validate()
      {
        //get all values of elmone
      }
     </script>


<form>
<input type="text" size="15" value="Hello World" name="elmOne">
<input type="text" size="15" value="next Hello World" name="elmOne">
 <input type="button" onclick="javascript:validate()" value="validate">
</form> 

Thanks..

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events