Skip to content

Instantly share code, notes, and snippets.

@hmbashar
Created August 18, 2019 11:52
Show Gist options
  • Save hmbashar/31daa0c299966cdc83598fc3673d884c to your computer and use it in GitHub Desktop.
Save hmbashar/31daa0c299966cdc83598fc3673d884c to your computer and use it in GitHub Desktop.
// Table Hover System
// for 2nd column
$('.hosting-feature-list-row div:nth-child(3)').hover(function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(3)').addClass('shape-hosting-pack-hover');
},
function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(3)').removeClass('shape-hosting-pack-hover');
}
);
// For 3rd Column
$('.hosting-feature-list-row div:nth-child(4)').hover(function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(4)').addClass('shape-hosting-pack-hover');
},
function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(4)').removeClass('shape-hosting-pack-hover');
}
);
// for 4th Column
$('.hosting-feature-list-row div:nth-child(5)').hover(function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(5)').addClass('shape-hosting-pack-hover');
},
function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(5)').removeClass('shape-hosting-pack-hover');
}
);
// for 5th Column
$('.hosting-feature-list-row div:nth-child(6)').hover(function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(6)').addClass('shape-hosting-pack-hover');
},
function() {
$('.hosting-feature-list-row').children('.hosting-feature-list-row div:nth-child(6)').removeClass('shape-hosting-pack-hover');
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment