1//Remove all event handlers from all paragraphs:
2
3$( "p" ).off();
4
5//Remove all delegated click handlers from all paragraphs:
6
7$( "p" ).off( "click", "**" );
1// adding an event listener using jQuery
2$('h1').click(()=>{
3 console.log('clicked')
4})
5
6// unbinding event listener
7$('h1').unbind()