I have a navigation tab which on click adds a class, say "active".
The problem is when i re-click on "active" it goes back to "in-active" state.
Can some one help me here.
Link to JSfiddle:
http://jsfiddle.net/EGR65/
The script goes like this :
<script>(function($){
$(document).ready(function() {
$('#yolloSwag a').click(function(){
var x69_Ownage = $(this).find('.showDropDown_X69').toggleClass('active_X69Arrow');
$('.showDropDown_X69').not(x69_Ownage).removeClass('active_X69Arrow');
var active99 = $(this).toggleClass('active_TabX');
$('a').not(active99).removeClass('active_TabX');
});
});
})(jQuery);
</script>