Dhaval Shukla Dhaval Shukla - 1 year ago 69
ASP.NET (C#) Question

$find returning null

I have radGrid in

page in which I want to find the control using
but it returns a null to me. Below is my code which I am using to get the object (written in .ascx).

<script type="text/javascript">
$(function () {
var Rates_gridID = $find('<%= gridRates.ClientID %>');

Here, I am getting
as null in alert. Interesting thing which I noted is when I change the jQuery version to
I am getting
object. I have googled this a lot but not getting any solution. I think the problem is with

Answer Source

You are using the incorrect syntax. Try

$("body").find('<%= gridRates.ClientID %>');
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download