<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='docs.xsl'?>
<docs>
<method cat='Effects' type='jQuery' short='Toggle the visibility of all matched elements by adjusting their height and firing an
optional callback after completion.' name='slideToggle'>
<desc>Toggle the visibility of all matched elements by adjusting their height and firing an
optional callback after completion.

Only the height is adjusted for this animation, causing all matched
elements to be hidden in a "sliding" manner.</desc>
<see>slideDown(String|Number,Function)</see>
<see>slideUp(String|Number,Function)</see>
<params type='String|Number' name='speed'>
<desc>(optional) A string representing one of the three predefined speeds ("slow", "normal", or "fast") or the number of milliseconds to run the animation (e.g. 1000).</desc>
</params>
<params type='Function' name='callback'>
<desc>(optional) A function to be executed whenever the animation completes.</desc>
</params>
<examples>
<code>$("p").slideToggle("slow");</code>
</examples>
<examples>
<code>$("p").slideToggle("slow",function(){
  alert("Animation Done.");
});</code>
</examples>
</method></docs>
