
jQuery Listeners
The best way to bind to events is with with the jQuery $(document).on(selector, event, handlerFunction) function:
$(document).on("click", "#myElemId", function() { //Handle the event here //this is the element interacted with, wrap in jQuery selector for more power: $(this) });