jQuery toggle CSS?

For jQuery versions lower than 1.9 (see https://api.jquery.com/toggle-event): Using classes in this case would be better than setting the css directly though, look at the addClass and removeClass methods alecwh mentioned.

jQuery Toggle Text?

Sorry the problem is me! the was out of sync but this was because I have the HTML text the wrong way around. On the first click I want the div to fade out and the text to say “Show Text”. Will check more thoroughly next time before I ask! My code is now: Thanks … Read more

Toggle show/hide on click with jQuery

Note: This method signature was deprecated in jQuery 1.8 and removed in jQuery 1.9. jQuery also provides an animation method named .toggle() that toggles the visibility of elements. Whether the animation or the event method is fired depends on the set of arguments passed, jQuery docs. The .toggle() method is provided for convenience. It is relatively straightforward … Read more

tech