Okay, so I've been looking for an answer for this for a couple of hours now and found nothing that works.
I have a page that I load inside a div after a .click event, so that looks like this:
$('#mybutton').click( function () { $('#mydiv').load('myinnerpage.aspx'); });
Then I have inside myinnerpage.js I have:
$(document).on('change', 'input[name=rbfileByNameOrID]:radio', function () {
if ($('input#rbByFileName').attr('checked'))
fileSelectionBy('filename');
else
fileSelectionBy('fileid');
});
the change function never gets fired, unless I open myinnerpage.aspx by itself.