disable on click jquery code example
Example 1: jquery remove disabled property from button
$('#edit').click(function(){
$('.inputDisabled').attr('disabled',false);
});
Example 2: disable button click jquery
function load(recieving_id){
$('#roommate_but').prop('disabled', true);
$.get('include.inc.php?i=' + recieving_id, function(data) {
$("#roommate_but").html(data);
});
}
Example 3: disable click event jquery
$("#navigation ul li").unbind("click");
Example 4: enable disable click on div jquery
document.getElementById('id').style.pointerEvents = 'none';
document.getElementById('id').style.pointerEvents = 'auto';