Toggle more text


/ Published in: jQuery
Save to your folder(s)

Example markup:

<p>This is the first part of the text <a class="toggle">[+]</a><span>this part is hidden until clicking the toggle link.</span></p>

The script will show and hide text when the toggle link is clicked. It also swaps out the + with the − when the the text is toggled.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.