0
<div class="post-content">
<p>Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text Random text >Random text >Random text </p>
<p>More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text More text </p>
<span class="more">more/less</span>
</div>
$('.post-content p:not(:first-child)').css('display', 'none');
$(".more").click(function() {
$('.post-content p:not(:first-child)').css('display', 'block');
});
demoтумблер эффект читать далее
Проблема очевидна. Мне нужно сделать эффект toogle, чтобы показать скрыть все p
после первого абзаца.