$find returning null
<p>I have radGrid in <code>.ascx</code> page in which I want to find the control using <code>$find</code> but it returns a null to me. Below is my code which I am using to get the object (written in .ascx).</p>

<pre><code>&lt;script type="text/javascript"&gt;
    $(function () {
        var Rates_gridID = $find('&lt;%= gridRates.ClientID %&gt;');
        alert(Rates_gridID);
    });
&lt;/script&gt;
</code></pre>

<p>Here, I am getting <code>Rates_gridID</code> as null in alert. Interesting thing which I noted is when I change the jQuery version to <code>1.2.6</code> from <code>1.6.4</code> I am getting <code>Rates_gridID</code> object. I have googled this a lot but not getting any solution. I think the problem is with <code>$(function()</code>.</p>
