James Riley bio photo

James Riley

Ruby, Javascript and Friends. Part of the Snapppt team. Living a life of learning. Join me.

Twitter LinkedIn Instagram Github

The jQuery toggle() function is great for easily switching an element to hidden or not. Today I was working on something where I wanted to toggle with a fade out, and I stumbled across the fadeToggle() function. Simple and easy to use, typical of jQuery.