title: How to get all value from table row and column to array in jquery
body: <p>How to get all value from table row and column to array</p>
  
  <pre><code>field1         field2           field3
    1             aaa              aaa
    2             bbb              bbb
    3             ccc              ccc
    4             ddd              ddd
  </code></pre>
  
  <p>i want to get value from table row to array like below: </p>
  
  <pre><code>array1=[["1","aaa","aaa"],["2","bbb","bbb"],["3","ccc","ccc"],["4","ddd","ddd"]];
  </code></pre>
  
  <p>My html</p>
  
  <pre><code>&lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;field1&lt;/th&gt;
              &lt;th&gt;field2&lt;/th&gt;
              &lt;th&gt;field3&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
          &lt;tr&gt;
              &lt;td&gt;1&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
              &lt;td&gt;aaa&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;2&lt;/td&gt;
              &lt;td&gt;bbb&lt;/td&gt;
              &lt;td&gt;bbb&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;3&lt;/td&gt;
              &lt;td&gt;ccc&lt;/td&gt;
              &lt;td&gt;ccc&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;4&lt;/td&gt;
              &lt;td&gt;ddd&lt;/td&gt;
              &lt;td&gt;ddd&lt;/td&gt;
          &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>Any solution for this? Thank you</p>