the HTML structure.
<div id="content">
<p>.....</p>
<p>.....</p>
<p>.....</p>
<p>.....</p>
</div>
now, i want to add a more<< text after the first paragraph, under default state. the others paragraph are hide, only display the first paragraph content. when click the more<< then show the rest paragraph content. is there a way to get this by jquery or javascript?
Click once to show all
<p>'s, click again to hide them.Check working example at http://jsfiddle.net/FUMuJ/
Here’s another example where
morechanges tolesswhen clicked on and backCheck working example at http://jsfiddle.net/FUMuJ/1/