title: How to parse the data given in input text using JavaScript?
body: <p>I have to paste the data in HTML input text fields in the following format from MS excel or same type of sheets:</p>
  <pre><code>123456  12  this
  234567  3   before blank
  111111  3   
  222222  3   after blank
  </code></pre>
  <p>I copied the data from MS Excel which contain the single tab  between <code>12</code> and <code>this</code> and so on.. I have tried to implement it but didn't work for me. The above data will be pasted into a text area and it save into a another JavaScript variable into the following format:</p>
  <pre><code>&lt;row dc= '&quot; + arr[0] + &quot;' al='&quot; + arr[1] + &quot;' msg='&quot; + arr[2] + &quot;' /&gt;
  </code></pre>
  <p>Where <code>arr[0]</code> is <code>123456</code>, and <code>arr[1]</code> is <code>12</code> and <code>arr[3]</code> is <code>this</code> and so on by appending the value.</p>