jQuery .off() event method
Use .off()
.off()
removes events.
The following code snippet shows how to remove click event from different selectors.
$("#delegate").off("click", "p");
$(document).off("click", "#anchor");
$("#aDiv").off('click');
.off()
removes events.
The following code snippet shows how to remove click event from different selectors.
$("#delegate").off("click", "p");
$(document).off("click", "#anchor");
$("#aDiv").off('click');