title: Save user input in Array
body: <p>I am a true beginner in html/js/jquery.</p>
  
  <p>I am trying to save user input into an array, then later I want to write all that information from that array into an xml file.</p>
  
  <p>My Problem is that my form consists of multiple Jobs which will all have the same input fields.</p>
  
  <p>This is a short example of the first job:</p>
  
  <pre><code>&lt;form&gt;
      &lt;table class="wrapper"&gt;
          &lt;tr&gt;
              &lt;td style="text-align: left"&gt;First Digit:
              &lt;div&gt; &lt;input id="fDigit" type="text" name="Job1[]" /&gt;&lt;/td&gt;
              &lt;td style="text-align: left"&gt;System:      
              &lt;div&gt; &lt;input id="system" type="text" name="Job1[]" /&gt;&lt;/td&gt;
              &lt;td style="text-align: left"&gt;SAP Modul:  
              &lt;div&gt; &lt;input id="sapModul" type="text" name="Job1[]" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="text-align: left"&gt;Country: 
              &lt;div&gt; &lt;input id="country" type="text" name="Job1[]" /&gt;&lt;/td&gt;
              &lt;td style="text-align: left"&gt;Duration: 
              &lt;div&gt; &lt;input id="duration" type="text" name="Job1[]" /&gt;&lt;/td&gt;
              &lt;td style="text-align: left"&gt;Step Number: 
              &lt;div&gt; &lt;input id="stepNumber" type="text" name="Job1[]" /&gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td style="text-align: left"&gt;Optional Text:
                  &lt;div&gt; 
                  &lt;textarea align ="left" id ="optionalText" name="Job1[]" cols="20" rows="2"&gt; &lt;/textarea&gt;
                  &lt;/div&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I have many more of those in my Script.</p>
  
  <p>What I want to do now is saving the Information of every Job into an Array, meaning Job1[]: with the user input of every field which is shown above , Job2[]: different user input but similar input field with the same name.
  There might be an easier solution to do this but I just can't figure one out.</p>
  
  <p>Sorry if this is a too stupid issue but i tried to find solutions for ages and could not find one which helped me out.</p>
  
  <p>Thanks in advance!</p>