If I have a custom ASP.NET control that renders as an html control with an ID, I'm trying to add an attribute to the input control with jQuery.
However, I'm running into some issues:
First, my jQuery is not able to select it.
I have so far:
$(document).ready(function() {
$(client id of the input control).attr('onclick', function () { alert('hey!'); });
});
It seems as if the jQuery is trying to find the input control but cannot.
Any ideas?
UPDATE:
Normally, the solutions presented would work but since this is a SharePoint Publishing .aspx page, Code blocks are not allowed... Trying other work arounds.