Which one is the correct syntax?
<p>Friends, I've one question to ask. Which one is the correct syntax in jquery to get the last row of a gridview or is there any difference in the following codes:--</p>

<pre><code> var rowCount = $('#GridView1 tr').length;

 or

 var rowCount = $("#&lt;%=GridView1.ClientID %&gt; tr:last");
</code></pre>

<p>Please help me to resolve the problem.Thanks in advance.</p>
