Skip to content

Instantly share code, notes, and snippets.

@rajilesh
Last active November 11, 2020 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajilesh/185263b29b814226216985b2c9464e10 to your computer and use it in GitHub Desktop.
Save rajilesh/185263b29b814226216985b2c9464e10 to your computer and use it in GitHub Desktop.
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