How do I do the live event (for when new content is injected) with the new way of doing multiple jQuery events:
$('.foo', this).bind({
click: function() {
//do thing
},
mouseover: function() {
//do other thing
},
mouseout: function() {
//do other other thing
},
focus: function() {
//do other other other thing
}
});
For example in the above I need any content to be bound with the click and all the other events too.
Basically, I'm trying to avoid writing:
$('.foo', this).live('click', function() {
//do thing
}
});
$('.foo', this).live('mouseover', function() {
//do other thing
}
});
$('.foo', this).live('mouseout', function() {
//do other other thing
}
});
$('.foo', this).live('focus', function() {
//do other other other thing
}
});