. Advertisement .
..3..
. Advertisement .
..4..
How do I disable click event in javascript? Your suggestions would help me a lot.
If you’d like to disable or enable the click event of the div, you can do it by: If you’d like to disable a div, you can use this code:$("#id").on('click', function(){ //enables click event
//do your thing here
});
$("#id").off('click'); //disables click event
$("#id").attr('disabled','disabled');
1 Answer