/ Published in: jQuery
Make elements with the "toggle-next" class show/hide the following element when clicked.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
jQuery( function( $ ) { $( '.toggle-next + *' ).hide(); $( '.toggle-next' ).click( function() { $( this ).next().slideToggle( 'fast' ); return false; } ); } );