Hi,
in my blog some articles are very long. So I want the long articles to be collapsed when the page is loaded. It works for me for just one article but if I have more articles something seems to be broken.
Here's how I do it:
$('div#ttoggle').hide();
$('#btoggle').click( function() {
if($('div#btoggle p').text() == 'expand article'){
$('div#btoggle p').text('collapse article');
}else{
$('div#btoggle p').text('expand article');
}
$('div#ttoggle').slideToggle("slow");
});
Any ideas?