I have this code in my .aspx page:
$("#city, #<%=tbSiteSearch.ClientID%>").on('keydown', function (e) {
As you can see I'm dynamically injecting the clientid of a server side control.
Now when I move this codeline to an external .js file, I no longer have the availability of my ASP.NET tags.
How can I move my code to an external .js file while still being able to add the trigger on that server control dynamically? Please provide a code sample on how to do it :)