Answers for "jquery remove click event"

3

jquery clear click event

$( "#foo" ).unbind("click");
Posted by: Guest on March-16-2020
2

remove add event listener jquery

//Remove all event handlers from all paragraphs:

$( "p" ).off();

//Remove all delegated click handlers from all paragraphs:

$( "p" ).off( "click", "**" );
Posted by: Guest on April-27-2020
1

jquery remove keypress event

$('#foo').unbind("keypress");
Posted by: Guest on August-02-2020
0

jquery remove click event

$("button").click(function(){
  $("p").off("click");
});
Posted by: Guest on July-06-2021
0

jquery remove click event

$("#foo").unbind();
Posted by: Guest on July-29-2021
-2

how to remove event listener in jquery

// adding an event listener using jQuery
$('h1').click(()=>{
    console.log('clicked')
})

// unbinding event listener
$('h1').unbind()
Posted by: Guest on June-24-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language