I have asp.net webApplication having asp controls.
<asp:HiddenField ID="hdTime" runat="server" />
To Access above control in Javascript i have used $('#ContentPlaceHolder1_hdTime').val('AM');
it works fine in Mozila firefox but in InternetExplorer it takes
$('#ctl00_ContentPlaceHolder1_hdTime').val('AM');
i have also tried
$('#<%= hdTime.ClientID %>')
but above syntext works only on .aspx page but when i use javascript.js file it doesn't find as $('#<%= hdTime.ClientID %>')
so how to access asp controls in .js file??
Thanks