title: JavaScript <form> input fields "associative" array?
body: <p>I will start first by stating that I am fully aware there is no "true" associative array in JavaScript. That being said, I would like to have something like...</p>
  
  <pre><code>&lt;form action="javascript:submitSpecial();" name="myForm" &gt;
      &lt;input name="myInput" type="text" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Specifically, I do NOT want this form to directly call a .php script. I want it to be handled by my JavaScript function "submitSpecial()" and pick out the form inputs with their respective names, and make an AJAX call to the next .php script.</p>
  
  <pre><code>document.forms['myForm']['myInput'].name
  document.forms['myForm']['myInput'].value
  </code></pre>
  
  <p>Basically I want to build or find an array with this information in it. I can only use JavaScript, no JQuery or anything like that. The elements[] collection is so close, but I need to know the column names that belong with the values.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks in advance,
  Zak</p>