I have a table with 6 columns, but I just want to give hover
in the first 4 columns. Is it possible to do this?
I'm using MVC 4
and bootstrap
I'm already using a method in Jquery
:
$(".table tbody tr").hover(function () {
$("table tbody tr .cell-padrao").each(function (index) {
$(this).css("background-color", "#FFF");
});
$(this).each(function (index) {
$(this).find(".cell-padrao").css("background-color", "#eee");
$(this).find(".cell-padrao").css("cursor", "pointer");
});
});
But every time I draw the mouse from the Line the hover is still there. I need him to leave. Can you improve this method or do you have something in% of what can be done?
EDIT: I need it to hover in the first 4 (joins) columns and the other 2 columns stay as they are, because they have their own hovers
Exactly like this: link , but when you leave tr the hover also adds