$('#<%=nameLabel.ClientID%>') does not work when in .js file and works when in script is in the page
<p><code>$('#&lt;%=nameLabel.ClientID%&gt;')</code> is being used in my script for jquery.</p>

<p>When this is in  ... block in tha page , it works fine ,as its a content page it is evaluated to <code>$('#ctl00_contentPanel1_nameLabel')</code> properly, i can see it while debugging scripts. </p>

<p>however , when i keep the same script in .js file it does not evaulate to <code>$('#ctl00_contentPanel1_nameLabel')</code> hence does not work.</p>

<p><strong>It is sure that .js script is loaded as i can debug &amp; some other functions also work.</strong> 
I am using ScriptManagerProxy. </p>

<p>Please help ? </p>

<p>Thanks in advance.</p>
