Answers for "remove a function added to eventhandler"

-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
0

remove a function added to eventhandler

element.removeEventListener(type, handler);
Posted by: Guest on November-25-2020

Code answers related to "remove a function added to eventhandler"

Code answers related to "Javascript"

Browse Popular Code Answers by Language