Skip to content

Instantly share code, notes, and snippets.

@doublejosh
Last active June 13, 2016 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doublejosh/7f2f798a55179a54e5609fb148f9150e to your computer and use it in GitHub Desktop.
Save doublejosh/7f2f798a55179a54e5609fb148f9150e to your computer and use it in GitHub Desktop.
<!-- How would you make the following link show all content when clicked? -->
<p><a href="#" id="opener">Expand All</a><p>
<ul id="stuff">
<li>
<strong>Some Content</strong>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Suspendisse at leo quis lectus imperdiet consectetur.
</p>
</li>
<li>
<strong>Interesting Stuff</strong>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean ornare risus sit amet lacus eleifend eget convallis metus sagittis.
</p>
</li>
<li>
<strong>Boring Text</strong>
<p>
Vivamus fermentum, quam quis vehicula posuere, elit urna dapibus.
Nunc suscipit mattis pellentesque.
</p>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment