# Value from select input dropdown

**URL:** <https://community.weweb.io/t/value-from-select-input-dropdown/5366>\
**Category:** How do I?\
**Created:** [November 13, 2023, 3:30am UTC](https://community.weweb.io/t/value-from-select-input-dropdown/5366 "2023-11-13T03:30:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![benji241](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@benji241](https://community.weweb.io/u/benji241)\
**Post date:** [November 13, 2023, 3:30am UTC](https://community.weweb.io/t/value-from-select-input-dropdown/5366/1 "2023-11-13T03:30:34Z")

</div>

I have a select input dropdown in a repeating row (in a table). I am trying to update the database when I choose a different option. How do I get the new value from the select input? It seems like it should be easy but I can’t find it.

---

<div class="post-metadata">

**Author:** ![benji241](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@benji241](https://community.weweb.io/u/benji241)\
**Post date:** [November 13, 2023, 4:19am UTC](https://community.weweb.io/t/value-from-select-input-dropdown/5366/2 "2023-11-13T04:19:02Z")

</div>

I figured it out. I was trying to use the on change event value directly but it seems to be a text value. So I stored it in a variable first with a number type and used that to update the database.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [November 13, 2023, 8:19am UTC](https://community.weweb.io/t/value-from-select-input-dropdown/5366/3 "2023-11-13T08:19:07Z")

</div>

you can do Number([variable]) to transform it into a number instead of storing it first
