Good day. Guys, such a question. There is a script
$(document).ready(function(){ $('.looni').AnyFunc(); });
I can not figure out how to make it so that when I clicked it would switch to another code. Those.
$(document).ready(function(){ if (клик по ссылке) $('.looni').AnyFunc(); else $('.looni').AnyFunc2(); });
At the same time it is necessary that when you click again changed in the reverse order. Grubogovrya type switch. With every click to change functions.