Fetching table td's count from jquery post data
<p>I'm trying to fetch how many number of records I get inside my table. I've tried to fetch the row count like following (number of records):</p>

<pre><code>       var length = $(data).find('#tableProducts').get(0).children('tr').children('td').length
console.log($(data).find('#tableProducts'));
</code></pre>

<p>The method above returns me 0 value every time. </p>

<p>How can this be done?</p>