When i use this "#<%= txtNumberOfDrugsInKit.ClientID %>", i can access the server control from my JQuery script; but when i put this in an external script file, it does not work.
How can i access an asp textbox from my external JavaScript file? I cant believe this is not working.
I think article will help you out. http://lanitdev.wordpress.com/2009/06/08/extending-jquery-to-select-asp-controls/+
I have used this solution and it works very well to select server controls without having to add extra markup.