I use now this script which works well, but i want also a read less button.
This i can’t figure out how to do this. Hope somebody can help me with this.
$('#info')
.find('tr:gt(5)')
.hide()
.end()
.append(
$('<tr><td class="show_more_btn">Read more »</tr></td>').click( function(){
$(this).siblings(':hidden').show().end().remove();
})
);
Replace your current javascript with:
You can get a smoother feel by replacing
.toggle()with.slideToggle(), or.fadeToggle().