Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function($) {
- $('[rel=show-staff]').click(function(){
- $this = $(this);
- var the_class = $this.attr("class");
- if (!$('#'+the_class).hasClass('turned-on')){
- $('#'+the_class).fadeToggle();
- $('.turned-on').fadeToggle();
- $('.turned-on').removeClass('turned-on');
- $('#'+the_class).addClass('turned-on');
- } else {
- $('.turned-on').fadeToggle();
- $('.turned-on').removeClass('turned-on');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement