Posted By

cyberhobo on 11/13/09


Tagged

toggle effects ui toggle-next


Versions (?)

Toggle next element on click


 / Published in: jQuery
 

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

  1. jQuery( function( $ ) {
  2. $( '.toggle-next + *' ).hide();
  3. $( '.toggle-next' ).click( function() {
  4. $( this ).next().slideToggle( 'fast' );
  5. return false;
  6. } );
  7. } );

Report this snippet  

You need to login to post a comment.