Posted By

jonniespratley on 07/24/09


Tagged

toggle text ui


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


jquery - Toggle More Text


 / Published in: jQuery
 

  1. $('.more').live('click', function(){
  2. $(this).html() == 'more' ? $(this).html('less') : $(this).html('more');
  3. $(this).parents('.description:first').find('.body').toggle('slow');
  4. return false;
  5. });

Report this snippet  

You need to login to post a comment.