javascript - jQuery on click run functions inside twice -
is possible run functions twice on click function?
example:
$('a').click(function(){ function1(); function2(); });
this should run function1(); function2();
, again function1(); function2();
try bind events twice , if want run function more twice preferred way looping.
function twice(){ function1(); function2(); } $('a').click(twice).click(twice);
Comments
Post a Comment