Read More

Simple "read more" JavaScript function that reveals more content onclick.

Useful for FAQs or Questions & Answers pages. Also great for conditionally revealing long content on mobile.

Works in modern browsers and IE8+

Please view the source of this page to see the HTML markup and JS.


This is a short intro/excerpt for entry 1...

Entry 1 - blah, blah...

Entry 1 - blah, blah...

Entry 1 - blah, blah...

This is a short intro/excerpt for entry 2...

Entry 2 - ho-hum...

Entry 2 - ho-hum...

Entry 2 - ho-hum...

This is a short intro/excerpt for entry 3...

Entry 3 - do-by-do...

Entry 3 - do-by-do...

Entry 3 - do-by-do...

 

Conditionally hide long content on mobile

Shrink your browser window to less than 960px wide to see the effect of this next demo.

This example hides long content on mobile (<960px for this demo) but keeps it visible on desktop...

 

More demos and snippets

Did you find this useful? There are more demos and code snippets this way.