.live() help please

.live() help please

Morning,

I am relatively new to jQuery and having slight trouble getting my head round this:

Currently I have the top half of this function working, as the  cells are not rendered initially and once rendered the above will add the class highlight when hovered, but it doesn't remove it on hover out.

$("td.ms-vb2").live('hover',function(){
    $(this).parent().fadeIn('slow').addClass('highlight');
}, function(){
    $(this).parent().removeClass('highlight');
});

Thanks in Advance
    • Topic Participants

    • admin