Bind multiple events to jQuery 'live' method

Posted by Will Peavy on Stack Overflow See other posts from Stack Overflow or by Will Peavy
Published on 2009-10-29T19:57:47Z Indexed on 2010/04/07 9:03 UTC
Read the original article Hit count: 298

Filed under:

jQuery's 'live' method is unable to handle multiple events. Does anyone know of a good workaround to attach multiple events to a function that polls current and future elements? Or am I stuck using duplicate live methods for each event handler I need?

Example - I am trying to do something like:

$('.myclass').live('change keypress blur', function(){
  // do stuff
});

© Stack Overflow or respective owner

Related posts about jquery-events