disable onclick jquer code example
Example 1: How disable button jquery
$( "button" ).prop( "disabled", true );
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