I have the following scenario.
UpdatePanel GridView EditMode Shows UserControl with JQuery code
Inside that usercontrol I can't see the fields from JQuery. If I remove the update panel everything works fine. Most examples I've found don't seem to have a usercontrol inside the update panel. I'm not sure if that makes a difference or not. I tried using the ScriptManager.RegisterClientScriptBlock but I may have had it in the wrong place.
This worked for me, the example didn't use wildcards though, that did the trick. Since I had the control on datarows, each one had a different ID.
function BindEvents() {
$(document).ready(function () {
$("[id*='txtBox']").on("mouseover",function () {
$(this).val("DOn't leave");
var other = 0;
});
});
}