
Test Site Script
By:
brettshumaker on
Mar 4th, 2013 | syntax:
jQuery | size: 0.45 KB | hits: 76 | expires: Never
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');
}
});
});