Setting Label Text to Number of Rows with jQuery
<p>This is my code but nothing happens.</p>

<pre><code>$(document).ready(function() {
  var totalRows = $("#&lt;%=GridView3.ClientID %&gt; tr").length;
  document.getElementById('Label6').InnerHTML = totalRows;
});
</code></pre>

<p>this is what i ended up using</p>

<pre><code>var rqnum = $("#&lt;%=GridView3.ClientID %&gt; tr").length - 1;
document.getElementById('rqnum').innerHTML = rqnum;

var oknum = $("#&lt;%=GridView4.ClientID %&gt; tr").length - 1;
document.getElementById('oknum').innerHTML = oknum;

var xlnum = $("#&lt;%=GridView5.ClientID %&gt; tr").length - 1;
document.getElementById('xlnum').innerHTML = xlnum;

var dynum = $("#&lt;%=datalist1.ClientID %&gt; tr").length / 3;
document.getElementById('dynum').innerHTML = dynum;
</code></pre>

<p><strong>this way it subtracts the header, however, how can i make it so if it is 0 dont subtract the -1 because i dont want negatives</strong></p>
