Expand-Collapse Paragraph | JavaScriptSource

Expand-Collapse Paragraph

JavaScriptSource Staff Jan 18, 2006
Need to display a lot of information in a limited area? This script will display/hide the information at the click of a button. There is no limit to the amount of information you can add or sections you can use. Excellent for FAQs.
Click the button below to find the answer to the question. Click again to close the section



The JavaScript Source: Miscellaneous : Expand-Collapse Paragraph

Simply click inside the window below, use your cursor to highlight the script, and copy [Control]+C the script into a new file in your text editor (such as Note Pad) and save [Control+S]. The script is yours!!!


Did you use this script?  Do you like this site?  Please link to us!

Leave a Response

(
2 comments)

Is there a way to add a "close" button at the end so that people don't have to scroll up to collapse the paragraph? Thank you.

Jackie Jul 26, 2012

But what if I want the button to disappear, after the text is expanded.

Aditi Apr 22, 2012