# Is there a way to expand collapsed text by default?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-expand-collapsed-text-by-default/101972
**Category:** Support
**Created:** [November 13, 2018, 10:46pm UTC](https://meta.discourse.org/t/is-there-a-way-to-expand-collapsed-text-by-default/101972 "2018-11-13T22:46:11Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [November 17, 2018, 9:00pm UTC](https://meta.discourse.org/t/is-there-a-way-to-expand-collapsed-text-by-default/101972/3 "2018-11-17T21:00:02Z")

</div>

The only way I know of would be through JavaScript, you could probably run an event that looks for a details tag and adds the attribute ‘open’ to it.

Something like this:

```plaintext
$('details').attr('open','')

```

Figuring out the right event to fire that on, is a different question.

---

_[View the full topic](https://meta.discourse.org/t/is-there-a-way-to-expand-collapsed-text-by-default/101972)._
