Jquery,为第二次单击添加新function

我想在第一次点击后添加新效果。 当第一次点击提交时它工作正常。 第一次点击后如何使其正常工作?

if($('input#submit:not(.clicked)')){ $(this).addClass("clicked"); $('.error').hide().fadeIn(700); } else { $('.error').fadeOut(10000).fadeIn(700); } 

 $('input#sumbit').click(function(){ if( $(this).hasClass("clicked")) { $('.error').fadeOut(10000).fadeIn(700); // non-first click effect } else { $(this).addClass("clicked"); $('.error').hide().fadeIn(700); //first click effect } }); 
 $('input#submit').bind('click',function(){ //your function here ... //and your new click function is here $('input#submit').unbind('click').bind('click',function(){ ... }) })