2
Contributors
2
Replies
8
Views
2 Years
Discussion Span
Last Post by AQ
0

I am pretty sure that you could have located this information by doing a search on the web faster than actually posting a question.. but anyway here is an example..

<select name="dropdown">
  <option value="1">One</option>
  <option value="2">Two</option>
  <option value="3">Three</option>
  <option value="4">Four</option>
</select>

Of course there are other attributes you can use with the select element depending on what you need. It can go within or out of the form element, but if you want to retreive the selected option on a form post, it needs to be within the form start and end tag.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.