jQuery detect click amount
How to detect the amounts of clicks you do on an element. This is helpful on changing an element on amounts of clicks.
This function i used it in one of my projects to add a class when i clicked it and then removed the class when i clicked it twice. So this