views:

26

answers:

2

Can we call this: $('#nomeInput').keypress(function(){ //code here... an event listener?

Thanks.

+1  A: 

Yes. The function you pass to the keypress method is an event listener.

Tim Down
I believe the precision calling even listener not to the all code, but to the function is passed onto keypress makes the difference to my newbie eyes...
MEM
+1  A: 

at least jQuery does ... so I would say YES

MikeD
Well... it says: "Bind an event handler to the "keypress" JavaScript event, or trigger that event on an element."Can we presume that, bind an event handler is adding a event listener?
MEM
yes we can ... a "listener" is a prerequisit for a "handler"
MikeD