mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
highlight the tr when mouse hover
This commit is contained in:
@@ -15,3 +15,13 @@ $('#yes-btn').click(function() {
|
||||
//handle table
|
||||
$("table tr:nth-child(even)").addClass("even");
|
||||
$("table tr:nth-child(odd)").addClass("odd");
|
||||
|
||||
//highlight the tr when mouse hover on it
|
||||
$("table tr:gt(0)").hover(
|
||||
function() {
|
||||
$(this).addClass('hl');
|
||||
},
|
||||
function() {
|
||||
$(this).removeClass('hl');
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user