I am attempting to bind to the file attachment OK button which has an id of c100_PlaceHolderMain_btnOK.
I've tried
$('#ct100_PlaceHolderMain_btnOK').click(function() {
});
and
$(document).on('click', '#ct100_PlaceHolderMain_btnOK', function(e) {
});
but neither works, the functions never get called when the button gets clicked. Specifically I want to trigger the SPshowWaitWithNoClose to show when the user hits OK and then close once the result returns in the callback.
How can I get this working and why isn't jQuery able to bind to the button?