/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('.more').live('click', function(){ $(this).html() == 'more' ? $(this).html('less') : $(this).html('more'); $(this).parents('.description:first').find('.body').toggle('slow'); return false; });