Hi
I need a way to force a "read more" type effect using jquery.
I suspect it will be rather difficult going about it this way but here we go.
Take this paragraph:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque interdum nisi ut sapien tincidunt pretium. Maecenas vel mi eu dui feugiat hendrerit. In hac habitasse platea dictumst. Aliquam turpis velit, facilisis non euismod id, convallis vitae orci. Etiam rhoncus ante et risus sagittis euismod.
I want this:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque interdum nisi ut sapien tincidunt pretium. Click here to read more
<div class="hidden">
Maecenas vel mi eu dui feugiat hendrerit. In hac habitasse platea dictumst. Aliquam turpis velit, facilisis non euismod id, convallis vitae orci. Etiam rhoncus ante et risus sagittis euismod.
</div>
when "Click here" is read, the div "hidden" will slide in to view.
Unfortunately I can't control the output of this paragraph, so the entire paragraph will be output regardless. I need to attempt to use JQUERY or similar to select approx 20 characters, then append an anchor and a <div>
to hide the rest of the text.
It may well be too complicated but i can't think of another way.
I repeat - I cannot change how the paragraph is output, but would like a way to try and simuluate a "read more".
thanks.