Disable li tag for being click again??? Help please
I have a navigation made on li tag, i want my li tag to prevent being click when the class is active this is the code, i use this for my slider.
$(document).ready(function(){
$('#slideshow_nav li').click(function(e){
e.preventDefault();
$('.slide').css('transform','translateX('+$(this).index() * -1000+'px)');
$(this).toggleClass('active inactive');
$('#slideshow_nav li').not(this).removeClass('active').addClass('inactive');
});
});