Last active
November 11, 2020 11:41
-
-
Save rajilesh/185263b29b814226216985b2c9464e10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery('.event_secondbanner .open-next-table').each(function(){ | |
var th = $(this); | |
th.click(function(){ | |
if(th.hasClass('active_row')){ | |
$('.event_secondbanner .open-next-table').removeClass('active_row'); | |
// hide all details rows | |
$('.ediatble-table').hide(); | |
}else{ | |
$('.ediatble-table').hide(); | |
th.next().show(); | |
$('.event_secondbanner .open-next-table').removeClass('active_row'); | |
th.addClass('active_row') | |
} | |
}); | |
}); | |
// normal state css | |
// .ion{background:#f00;} | |
// active state css | |
// .active_row .icon{background:#f00;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment