jquery - Toggle More Text


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.