How do I get a callback function to only call once?
I have a callback function given with a toggle function. The idea is that all the <div> elements will be toggled and I will get one alert message. Now I know I can easily solve this problem with some sort of flag variable (like a boolean to see if this was the first call or not), but I don't want to do it like that if there is a better way.
Here's the jQuery:
|All times are GMT +1. The time now is 02:55 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.