# Inside the form element, I can select an option from a dropdown that has a corresponding id="dropdown".

**URL:** <https://forum.freecodecamp.org/t/inside-the-form-element-i-can-select-an-option-from-a-dropdown-that-has-a-corresponding-id-dropdown/499458>\
**Category:** General\
**Created:** [March 4, 2022, 9:15pm UTC](https://forum.freecodecamp.org/t/inside-the-form-element-i-can-select-an-option-from-a-dropdown-that-has-a-corresponding-id-dropdown/499458 "2022-03-04T21:15:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nkobus](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/nkobus/32/239687_2.png) [@nkobus](https://forum.freecodecamp.org/u/nkobus)\
**Post date:** [March 4, 2022, 9:15pm UTC](https://forum.freecodecamp.org/t/inside-the-form-element-i-can-select-an-option-from-a-dropdown-that-has-a-corresponding-id-dropdown/499458/1 "2022-03-04T21:15:12Z")

</div>

what am i doing wrong?

> **[xxPMaEb](https://codepen.io/nkobus/pen/xxPMaEb)**
>
> ...

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [March 4, 2022, 10:10pm UTC](https://forum.freecodecamp.org/t/inside-the-form-element-i-can-select-an-option-from-a-dropdown-that-has-a-corresponding-id-dropdown/499458/2 "2022-03-04T22:10:37Z")

</div>

Make sure you add the id `dropdown` to the correct element.

Also, `input` elements are empty elements, they do not have closing tags.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [September 3, 2022, 10:11am UTC](https://forum.freecodecamp.org/t/inside-the-form-element-i-can-select-an-option-from-a-dropdown-that-has-a-corresponding-id-dropdown/499458/3 "2022-09-03T10:11:36Z")

</div>

Closed on September 3, 2022, 10:11am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
