Posted By

sekihin on 04/27/09


Tagged

javascript array


Versions (?)

Using PHP Input Arrays with Javascript


 / Published in: JavaScript
 

URL: http://www.startupcto.com/front-end-tech/javascript/using-php-input-arrays-with-javascript

  1. <form name='myForm'>
  2. <input type='text' name='myInput[0]' id='myInput[0]' />
  3. <input type='text' name='myInput[1]' id='myInput[1]' />
  4. <input type='text' name='myInput[2]' id='myInput[2]' />
  5. </form>
  6.  
  7. document.forms['myForm'].elements['myInput[0]']

Report this snippet  

You need to login to post a comment.