$('.things').bind('focus change click', function() {
     // your code here
});

(Note that this doesn't work for $.live(), as you can only bind one
event for that.)

On Apr 14, 10:40 am, Tom Worster <f...@thefsb.org> wrote:
> i can assign a handler to one event type thus:
>
> $('.things').focus(function(){
>     $(this).data('foo', true);
>     ...
>
> });
>
> if i want to assign the same handler to several events, say focus, change,
> and click, what's the tidy way to write it [assuming my handler wants to
> access $(this)]?

Reply via email to