Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (44 sloc) 1.45 KB
<?xml version="1.0"?>
<entry name="toggle" type="method" return="jQuery">
<desc>Display or hide the matched elements, using custom effects.</desc>
<xi:include href="../includes/core-extension-desc.xml" xmlns:xi=""/>
<argument name="effect" type="String">
<desc>A string indicating which <a href="/category/effects/">effect</a> to use for the transition.</desc>
<argument name="options" type="Object" optional="true">
<desc>Effect-specific settings and <a href="/easings/">easing</a>.</desc>
<xi:include href="../includes/animation-argument-duration.xml" xmlns:xi=""/>
<xi:include href="../includes/animation-argument-complete.xml" xmlns:xi=""/>
<xi:include href="../includes/animation-signature-options.xml" xmlns:xi=""/>
<desc>Toggle a div using the fold effect.</desc>
div {
width: 100px;
height: 100px;
background: #ccc;
border: 1px solid #000;
<button>toggle the div</button>
$( "button" ).click(function() {
$( "div" ).toggle( "fold", 1000 );
<category slug="methods"/>
<category slug="effects"/>
<category slug="effects-core"/>
<category slug="overrides"/>
Jump to Line
Something went wrong with that request. Please try again.