Return to Snippet

Revision: 20370
at November 13, 2009 12:47 by cyberhobo


Initial Code
jQuery( function( $ ) {
	$( '.toggle-next + *' ).hide();
	$( '.toggle-next' ).click( function() {
		$( this ).next().slideToggle( 'fast' );
		return false;
	} );
} );

Initial URL

                                

Initial Description
Make elements with the "toggle-next" class show/hide the following element when clicked.

Initial Title
Toggle next element on click

Initial Tags

                                

Initial Language
jQuery