When I retrieve html with $.get(), the html contains form fields like input, textarea, etc. I want the change, paste and keypress events to be attached to those controls but these events are not getting fired. The jQuery docs state that at least one of those controls needs to be present in the html BEFORE retrieving the html with $.get(). Alternatively you could use the document element which doesn't require any controls present in advance but this has major performance issues, so I will place a hidden control on the page before ajax is called. Here is my html:
<div id="divAdminContent">
<form id="frmAdmin">
<input type="text" style="display:none" />
</form>
</div>
and here is how I am attaching "on":
$("#frmAdmin :input").on("change paste keypress", function (e)
{
// Do something...
});