showing results for - "how to disable onclick event in javascript"
Camilo
27 Nov 2019
1$("#id").on('click', function(){ //enables click event
2    //do your thing here
3});
4
5$("#id").off('click'); //disables click event
6
7// If you want to disable a div, use the following code:
8$("#id").attr('disabled','disabled');
queries leading to this page
js disabled button when clickhow to disable button after one click in javascripthow to disable click event with jsdisabled button on click javascriptdom javascript click disabled buttondisable button click event javascriptdisable close button in browser using javascriptdisabled button javascript onclickhow to disable click event in jsjs click handle on disabled buttondisable button on click jsjs onclick disabledisable all click events on page 28javascript 29prevent onclick from execution javascripthow to disable onclick event in javascript in domjavascript es6 onclick disable buttondisable button on condition javascriptover event disabled buttondisable event on clickdisable click on document javascripthow to disable click event on div using javascriptdisable click on button javascriptjavascript disable button click eventjavascript disabled click event javascript disable click event on elementdisable onclick javascriptjavascript disable clickdisable click javascriptdisable click jshow to disable click ein javascriptjs dom disable click javascriptdisable button onclick javascriptdisabled button click eventonclick event on disabled buttononclick button disable javascriptdisable click along with the deactive javascriptdisabled button onclick eventdisable button click javascriptdom javascript button clicked disabled buttonjavascript disabled onclickhow to disable click javascriptjavascript disable onclick event on objectjavascript disable onclick after one clickonclick disable button javascriptjs onclick disable buttondisable onclick event from documentjs onclick disabledbutton disabled onclick javascripthow to disable onclick in javascripthow to disable the button after click it in javascriptjavascript disable buttons after clickjavascrip disable and reenable clickdisable event in javascript functionjavascript make a button disable itself when clickedprevent click event on disabled buttonhow to disable and enable onclick event in javascripthtml event disabled buttondisable after click javascriptclick event disable javascriptdisabled click javascriptdisable click on button jsdisable and enable onclick javascripthow to make disable click in javascriptdisable a button onclick javascriptdisable button in javascript after one clickhow to disable a button after click in javascripthow to disable button lcick javascriptdisable click button javascriptmake object disable on clickhow to disable onclick in vanilla jsjavascript disable clickclickdisable click after one click javascript javascript disable click eventhow to disable button in javascript after one clickhow to disable button is onclick function used in javascriptjavascript disabled click event in a function disable click eventdisable clicking on element to javascriptjs disable button after clickjs click handle on disabled inputdisable button after click jsjavascript deactivate onclickdisable onclick javascript csshtml disable click eventjavascript disable onclick after clickbutton js disabled after clickdisable onclick event htmljavascript disable button after clickjs button click disablejavascript enable and disable button on eventjavascript disable click buttondisabled on click jshow to disable click event in javascript w3schoolsjs code disables after clicking sometingclick disable javascriptjavascript disable onclick disable screen onclick using javascriptjavascript disable on clickdisable onclick functionjs disable click eventjavascript click event disabled buttonhow to disable onclick event of button in javascripthow to disable an onclick on javasripthow to disable a button in javascript after clickingdisable mouse click javascript divhow to disable onclickdisabling click event in buttomonclick disabled button eventhow to disable click event in javascriptjavascript onclick disable buttonclick event disabled buttonjavascript disable onclick eventjavascript disable button onclickdocument getelementbyid onclick 3ddisabledisable onclick js w3schooldisable click in javascriptonclick disable javascripthow to disable button after click javascriptdisable button javascript after clicktimer on click javascript disable buttonjavascript button disable after clickhow to tag enable to disable to click event in javascriptdisabled button eventsjavascript disable button clickdisable click with jsdisable an element in javascript after button clickeddisable onclick jshow to disable click on html using javascriptdom javascript click disableddisable button click eventhow to disable a button after clicking javascriptdisable on click eventhow to disable button click event in javascripthow to disable click event in buttondisable button in javascript onclickhow to disable button when clicked in javascript disable onclick button javascriptjs disable element on clickhow to set disabled button after onclick in json event click how to disable a buttondisable onclick eventhow to disable click event of button in javascripthtml button disabled click eventhow can we disable the click event in jshow to disable onclick event in javascriptjs event disabled buttonafter click disable button javascripthow to disable a click eventdisable element on click javascripthow to disable the button in onclick javascripthow to disable onclick event in javascript