2948 explained code solutions for 75 technologies


jqueryAdd single handler to multiple events


$('input').on('click focus keydown', function(e) {
  console.log('hey!');
});ctrl + c
'input'

selector for needed element to bind events to

.on(

binds event handlers to specified events

click focus keydown

list of events to bind handler to

console.log('hey!');

replace with your code to handle specified events