title: How to put only one table td into an array
body: <p>I have a table like this:</p>
  <pre class="lang-js prettyprint-override"><code>var markup = &quot;&lt;tr&gt; &quot; +
          &quot;&lt;td&gt;&lt;center&gt;&quot; + count + &quot;&lt;/center&gt;&lt;/td&gt;&quot;+
          &quot;&lt;td&gt;&lt;center&gt;&lt;input type='checkbox' name='record'&gt;&lt;/center&gt;&lt;/td&gt;&quot;+
          &quot;&lt;td&gt;&quot; + id_dept + &quot;&lt;input type='hidden' name='team&quot;+count+&quot;' value='&quot; + team + &quot;'&gt;&lt;/td&gt;&quot; +
          &quot;&lt;td style='border-right:0px;border-left:0'&gt;&quot; + name + &quot;&lt;/td&gt;&quot;+
          &quot;&lt;td style='border-right:0px;border-left:0'&gt;&lt;input  name='empid&quot;+count+&quot;' value='&quot; + empid + &quot;'&gt;&lt;/td&gt;&quot; +
          &quot;&lt;td style='border-right:0px;border-left:0'&gt;&lt;input type='hidden' name='name&quot;+count+&quot;' value='&quot; + name + &quot;'&gt;&lt;/td&gt;&quot; +
          &quot;&lt;td style='border-right:0px;border-left:0'&gt;&lt;input type='hidden' name='bgian&quot;+count+&quot;' value='&quot; + bgian + &quot;'&gt;&lt;/td&gt;&quot; +
      &quot;&lt;/tr&gt;&quot;;
  
  $(&quot;table[id=table-pss] tbody&quot;).append(markup);
  </code></pre>
  <p>I want to put the td &quot;empid&quot; into an array.
  Here's what I've done so far:</p>
  <pre class="lang-js prettyprint-override"><code>    var myTableArray = [];
      $(&quot;table[id=table-pss] tbody tr&quot;).each(function() {
          var arrayOfThisRow = [];
          var tableData = $(this).find('td');
          if (tableData.length &gt; 0) {
              tableData.each(function() { 
                  arrayOfThisRow.push($(this).text()); 
              });
             myTableArray.push(arrayOfThisRow);
          }
      });
      console.log(myTableArray);
  </code></pre>
  <p>It adds the whole td's to array though, I'm wondering how to add only a td to array.
  thank you</p>