jquery temporarily disable click event code example
Example 1: disable click event jquery
$("#navigation ul li").unbind("click");
Example 2: enable disable click on div jquery
// To disable:
document.getElementById('id').style.pointerEvents = 'none';
// To re-enable:
document.getElementById('id').style.pointerEvents = 'auto';
// Use '' if you want to allow CSS rules to set the value