More text-Inline
by freedawirl
HTML
<span class="teaser">text goes here</span>
<span class="complete"> this is the
complete text being shown</span>
<span class="more">more...</span>
CSS
.complete{
display:none;
}
.more{
background:lightblue;
color:navy;
font-size:13px;
padding:3px;
cursor:pointer;
}
JavaScript
$(".more").toggle(function(){
$(this).text("less..").siblings(".complete").show();
}, function(){
$(this).text("more..").siblings(".complete").hide();
});