Is there a way to run two functions similar to this:
$(\'.myClass\').click( function() { // First click }, function() { // Second
var click_s=0; $('#show_pass').click(function(){ if(click_s % 2 == 0){ $('#pwd').attr('type','text'); $(this).html('Hide'); } else{ $('#pwd').attr('type','password'); $(this).html('Show'); } click_s++; });