I'm trying to bind three events to one selector using the live() method, but I can't seem to get it working.
Here's what I have so far, and it works until I add additional table rows:
$("tr:has(td)").live('click',function(event){
//do stuff
}).live('mouseover',function(){
$(this).toggleClass('highlight');
}).live('mouseout',function(){
$(this).toggleClass('highlight');
});
Once I add additional table rows, only the click event works. How can I get all three events to work after adding table rows?