JQuery Click Events

Submitted by code_admin on Wed, 07/25/2018 - 10:36

The way I use to register an event.
1. Events have unique names (click.NAME)
2. Call document.off to prevent mutiple registration mistakes.
3. Call document.on to register

$(document).off('component_viewer_res_schedule_detail');
$(document).on('click.component_viewer_res_schedule_detail', "a[href$='#component_viewer_res_schedule_detail_recalc']", function (event) {
    component_viewer_res_process_ScheduleResourses();
    component_viewer_res_displayRES("ScheduleDetail");
    event.preventDefault();
});
RJM Article Type
Work Notes