Hi,
I need to be able to bypass the first function of a toggle and I was wondering how the jquery toggle works?
I understand that if I click on something, the first function is carried out and then when I click on it again, the second function is carried out.
What I need to be able to do is to bypass the first function and go directly to the second one.
Reason I am doing this is that the state of a button has been changed by another event that's happened. When I now click on that button for the first time, it assumes that it's the first time it's been clicked and will carry out the first function when I need it to carry out the second function.
Is there a way around this? If the jQuery toggle function equates to a true or false, then surely I should be able to check this and call on the correct script?
Many thanks!