Javascript error:object Required
<p>I hav a Dropdown,Panel1,panel2 and a button on my page.
<br>
Inside Panel1 there is gridview1 and similarly in panel2 we have gridview2</p>

<p>But i get an error in javascript onload saying "Object Required" in the below mentioned line<br>
 if (parseInt($('#&lt;%= gvSelectedInstitutelist.ClientID %>').length) == 0)<br></p>

<p>The error is thrown when grid has no data..or the length is zero..
<br> Error is:"Object Expected"</p>
