Answers for "onclick disable and re-enable in javascript without jquery"

3

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
Posted by: Guest on April-11-2020
0

on click disable esc button using jquery

$(document).keydown(function(e) {
    if (e.keyCode == 27) return false;
});
Posted by: Guest on April-11-2022

Code answers related to "onclick disable and re-enable in javascript without jquery"

Browse Popular Code Answers by Language