# 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:** [11월 13, 2018, 10:46오후 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:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Olivier\_Lambert](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olivier_lambert/32/74807_2.png) [@Olivier\_Lambert](https://meta.discourse.org/u/Olivier_Lambert)
#### Post date: [11월 13, 2018, 10:46오후 UTC](https://meta.discourse.org/t/is-there-a-way-to-expand-collapsed-text-by-default/101972/1 "2018-11-13T22:46:12Z")

</div>

Talking aobut this:

> **something**
>
> I would like this to show without the user having to click it. Is it possible?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [11월 13, 2018, 11:11오후 UTC](https://meta.discourse.org/t/is-there-a-way-to-expand-collapsed-text-by-default/101972/2 "2018-11-13T23:11:48Z")

</div>

Not that I am aware of, no.

---

<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: [11월 17, 2018, 9:00오후 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.

---

<div class="post-metadata">

### Author: ![Zup](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@Zup](https://meta.discourse.org/u/Zup)
#### Post date: [4월 18, 2021, 12:08오전 UTC](https://meta.discourse.org/t/is-there-a-way-to-expand-collapsed-text-by-default/101972/5 "2021-04-18T00:08:32Z")

</div>

지금 시점에서 JS가 여전히 “가장 쉬운” 솔루션인가요?
