# Syntax of dropdown selects! Survey form help

**URL:** <https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886>\
**Category:** General\
**Created:** [May 19, 2020, 12:24am UTC](https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886 "2020-05-19T00:24:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![33P](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/33p/32/146929_2.png) [@33P](https://forum.freecodecamp.org/u/33P)\
**Post date:** [May 19, 2020, 12:24am UTC](https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886/1 "2020-05-19T00:24:51Z")

</div>

Hi everybody! I have a problem with the dropdown menu in the Survey Form Project. I couldn’t find an example in the challenges and I know I’m doing wrong because that’s the only test I still can’t pass in the Project.  
If you could give me an example it would be great.  
Thanks! Here’s the code:

```auto
<label id="dropdown" type="dropdown"> Select a favorite place where to watch movies</label>              
 <option value="theatres">theatres</option>
               <option value="home">home</option>

```

And the error:

`Select should contain at least 2 selectable options : expected 0 to be at least 2`

---

<div class="post-metadata">

**Author:** ![bbsmooth](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/bbsmooth/32/203556_2.png) [@bbsmooth](https://forum.freecodecamp.org/u/bbsmooth)\
**Post date:** [May 19, 2020, 12:30am UTC](https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886/2 "2020-05-19T00:30:04Z")

</div>

That drop down select menu is created by the `<select>` tag.

[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select)

You just need to wrap your options in that tag.

---

<div class="post-metadata">

**Author:** ![33P](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/33p/32/146929_2.png) [@33P](https://forum.freecodecamp.org/u/33P)\
**Post date:** [May 19, 2020, 12:58am UTC](https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886/5 "2020-05-19T00:58:52Z")

</div>

@bbsmooth Thank you! I hadn’t read the link you posted. It was very useful! I could pass the test now. Big thanks!

---

<div class="post-metadata">

**Author:** ![i-tech](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/i-tech/32/141825_2.png) [@i-tech](https://forum.freecodecamp.org/u/i-tech)\
**Post date:** [May 19, 2020, 2:53am UTC](https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886/6 "2020-05-19T02:53:24Z")

</div>

[https://www.w3schools.com/howto/howto\_js\_dropdown.asp](https://www.w3schools.com/howto/howto_js_dropdown.asp)

---

<div class="post-metadata">

**Author:** ![33P](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/33p/32/146929_2.png) [@33P](https://forum.freecodecamp.org/u/33P)\
**Post date:** [May 19, 2020, 3:09am UTC](https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886/7 "2020-05-19T03:09:38Z")

</div>

@i-tech Thank you! It’s a more difficult code but really nice and challenging. I’ll try this!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:53pm UTC](https://forum.freecodecamp.org/t/syntax-of-dropdown-selects-survey-form-help/390886/8 "2021-06-01T18:53:27Z")

</div>


