I wanted to create a simple, jQuery-only, solution for a flexible 'Read/Show More' link solution. The minimum requirements in your markup are simply to wrap your hidden/extended content in a div with a data-readmore
attribute. You can customize the text using the data-open-text
and data-close-text
attributes.
A Pen by David Angel on CodePen.