Dynamic Dropdown onselect
<p>What I am trying to do is when a item is selected from my dropdown menu, it would make a input box  appear with the description selected on the dropdown menu, so that it can be edited and updated back into the database,</p>

<p>I am unsure how to handle the javascript:</p>

<p><strong>Dropdown Code:</strong></p>

<pre><code>&lt;select name="captionSelect" id="captionSelect"&gt;
    &lt;?php foreach ($get_images as $image){
        echo '&lt;option value="'.$image['id'].'"&gt;'.$image['description'].'&lt;/option&gt;';
    };
    ?&gt;

&lt;/select&gt;
</code></pre>
