CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.
Can’t figure out how to make **.answer** slide up on the second click on **.question**? I achieved only this http://codepen.io/Kuzyo/pen/ofmjb
Better to use the `.slideToggle()` function! http://codepen.io/ggilmore/pen/8061f138c3492f529ddfff630234250e
I made it with
var isVisible = $(this).next().is(':visible');
but your variant is more better ))) thanks@TheDoc
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed