# Dropdown to change text

**URL:** <https://forum.code.org/t/dropdown-to-change-text/40716>\
**Category:** Coding and Debugging Help\
**Created:** [May 2, 2025, 1:12am UTC](https://forum.code.org/t/dropdown-to-change-text/40716 "2025-05-02T01:12:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stella.stevenson](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@stella.stevenson](https://forum.code.org/u/stella.stevenson)\
**Post date:** [May 2, 2025, 1:12am UTC](https://forum.code.org/t/dropdown-to-change-text/40716/1 "2025-05-02T01:12:54Z")

</div>

My student is trying to use a dropdown list to change the text displayed elsewhere on the screen. That is, if they select the number “3” from the dropdown, the text should change from “0” to “3” on the screen.

We’ve got it so the dropdown does change the text, but instead of changing to “3” (as it appears in the dropdown list), it changes to “d” (I’m guessing because 3 is item d on the list? The same happens for all other numbers also: 0 becomes A, 1 becomes B, etc).

Any ideas on what we’re doing wrong? The code as it stands is

 ![Screenshot 2025-05-02 at 11.10.02 AM](https://us1.discourse-cdn.com/flex016/uploads/codeorgforum/original/2X/e/e6b68b946e530b363d9cf713e4b74ecceaa035de.png)

(I originally had the word “value” where it now says “options”; “options” was me experimenting and I don’t have a screenshot of it the other way)

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [May 2, 2025, 2:31am UTC](https://forum.code.org/t/dropdown-to-change-text/40716/2 "2025-05-02T02:31:43Z")

</div>

Could you share a link to your code?

---

<div class="post-metadata">

**Author:** ![immaTomato1](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/immatomato1/32/9755_2.png) [@immaTomato1](https://forum.code.org/u/immaTomato1)\
**Post date:** [February 28, 2026, 1:52am UTC](https://forum.code.org/t/dropdown-to-change-text/40716/3 "2026-02-28T01:52:19Z")

</div>

A problem I see is that getProperty(“blah”, “options”) returns as a list with _all_ the options instead of the current selected.

If Im not misinterpreting the question, then changing ‘options’ to ‘text’ should get the currently selected text.

I didnt realize this post was 10 months old. I was probably too late to help, sorry
