SyntaxFix
Write A Post
Hire A Developer
Questions
function DoPrevent(e) { e.preventDefault(); e.stopPropagation(); } // Bind: $(element).on('click', DoPrevent); // UnBind: $(element).off('click', DoPrevent);