# Making text appear and disappear by pressing a button

**URL:** https://cl.desmos.com/t/making-text-appear-and-disappear-by-pressing-a-button/1512
**Category:** Questions
**Created:** [September 16, 2020, 12:36pm UTC](https://cl.desmos.com/t/making-text-appear-and-disappear-by-pressing-a-button/1512 "2020-09-16T12:36:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Kevin\_Peters](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/kevin_peters/32/1045_2.png) [@Kevin\_Peters](https://cl.desmos.com/u/Kevin_Peters)
#### Post date: [September 16, 2020, 12:36pm UTC](https://cl.desmos.com/t/making-text-appear-and-disappear-by-pressing-a-button/1512/1 "2020-09-16T12:36:26Z")

</div>

I have 2 pieces of text that I want to cycle on and off. So ideally, you press the button we see the first piece of text, you press the button again you see the second piece of text, and the first piece is hidden, and you press the button again and we should be back at the beginning. The button does this, but I can’t get the text to cycle.

This is in slide 4, linked below. Thanks!

> **[Polynomial Division - Reverse Box Method (Lesson # 10) • Activity Builder by...](https://teacher.desmos.com/activitybuilder/custom/5f60d54d9826e625c849be74)**
>
> Let's learn how to divided polynomials using the reverse box method.

---

<div class="post-metadata">

### Author: ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)
#### Post date: [September 16, 2020, 4:50pm UTC](https://cl.desmos.com/t/making-text-appear-and-disappear-by-pressing-a-button/1512/2 "2020-09-16T16:50:57Z")

</div>

In your notes, use `button1.script.value` instead of `pressCount`.

Also, instead of separate notes, you could use one with similar code for `content` that you used for your button label.
