jQuery Highlight Table Row and Column On Mouseover

Cool Table Row and Column Highlighting On Mouse Hover

jQuery highlight table row and column mouseover

$('td').mouseover(function () {
    $(this).siblings().css('background-color', '#EAD575');
    var ind = $(this).index();
    $('td:nth-child(' + (ind + 1) + ')').css('background-color', '#EAD575');
});
$('td').mouseleave(function () {
    $(this).siblings().css('background-color', '');
    var ind = $(this).index();
    $('td:nth-child(' + (ind + 1) + ')').css('background-color', '');
});
jQuery Highlight Table Row and Column On Mouseover jQuery Highlight Table Row and Column On Mouseover Reviewed by Bhaumik Patel on 7:22 AM Rating: 5