I am trying to add new effect after the first click. When submit is clicked for the first time it is working fine. How to make it function after the first click?
if($('input#submit:not(.clicked)')){
$(this).addClass("clicked");
$('.error').hide().fadeIn(700);
} else {
$('.error').fadeOut(10000).fadeIn(700);
}