You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the event helpers section of learn.jquery.com, it says the .toggle function is to be given 2 or more functions that are called when an onclick event occurs.
However, the .toggle method description in the documentation talks about it being used to toggle the visibility of elements.
It looks like the first usage was deprecated in 1.8 and removed in 1.9, so this should probably be updated to show its newer usage.