2948 explained code solutions for 75 technologies


jqueryAdd event handler


$('button').on('click', function() { console.log('clicked'); });ctrl + c
button

element selector to remove event handler from

.on(

adds specified event handler

'click'

type of event to add handler to

console.log('clicked');

replace with your code to handle event