# Dynamic select

**URL:** <https://forum.kirupa.com/t/dynamic-select/43886>\
**Category:** web dev\
**Created:** [February 26, 2004, 8:38pm UTC](https://forum.kirupa.com/t/dynamic-select/43886 "2004-02-26T20:38:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REdefined](https://avatars.discourse-cdn.com/v4/letter/r/ba8739/32.png) [@REdefined](https://forum.kirupa.com/u/REdefined)\
**Post date:** [February 26, 2004, 8:38pm UTC](https://forum.kirupa.com/t/dynamic-select/43886/1 "2004-02-26T20:38:02Z")

</div>

I am curious if there is a way to create a select element dynamically using javascript [i.e. every time a button is clicked, another select box appears on the screen] I know you can add objects to a pre existing select using something like:

var myNewOption = new Option(“TheText”,“TheValue”);  
document.theForm.theSelectObject.options[0] = myNewOption;

but I cannot figure out how to create an entirely new select.

Thanks!!
