.toggle( effect [, options ] [, duration ] [, complete ] )Returns: jQuery
Description: Display or hide the matched elements, using custom effects.
optionsType: ObjectAll animation settings. The only required property is
effectA string indicating which effect to use for the transition.
"swing")A string indicating which easing function to use for the transition.
400)A string or number determining how long the animation will run.
completeType: Function()A function to call once the animation is complete.
true)A Boolean indicating whether to place the animation in the effects queue. If false, the animation will begin immediately. As of jQuery 1.7, the queue option can also accept a string, in which case the animation is added to the queue represented by that string.
This plugin extends jQuery's built-in
.toggle() method. If jQuery UI is not loaded, calling the
.toggle() method may not fail directly, as the method still exists. However, the expected behavior will not occur.
Toggle a div using the fold effect.