Event Binding Woes June 9th, 2014
In addition to viewing current events bound to an object with …
$._data( $('SELECTOR')[0], 'events' );
…in the console. I’ve discovered it is sometimes necessary to bind the event to a parent which already exists on the page as some scenarios don’t have all objects ready when the .ready() method is fired (*ahem* SharePoint, I’m looking over my glasses at you). This can be accomplished with the following…
$('PARENT_OBJECT').on('EVENT', 'ACTUAL_OBJECT', function(){...});
…Also, it’s worth trying the .live() method for event binding future elements.