I have the following situation:
$('input[name=buscar]').on( "keydown keypress keyup", function( event ) {
console.log('foi');
});
Every time I type, all 3 events are triggered. How do I get only 1 to be fired, instead of the 3? that is, I clicked on the button, fired the first event, instead what it should do and ready ...