I’m trying to make a function in jQuery that triggers different functions on each click. (on the same button) – But max 4 different clicks.
First click: function 1
Second click: function 2
Third click: function 3
Four and last click: function 4
It’s for an image rotation. (I have tried to start something)
http://pastie.textmate.org/private/uacbnix2fjovtocks5lehq
if i understand your question correctly . this should be the answer .