how to Target an option from pull down with js to apply more code
<p>a friend asked me to help him with a form, a client of his wants to make a form a bit more dynamic...my javascript is minimal at best since i just started learning.</p>

<p>He asked me something along the lines of " how can i make a form show another pull down ONLY WHEN a certain option is selected "</p>

<p>in the example he gave me, by default when page loads,he has a pull down menu which has 2 options, MANHATTAN and option two is BROOKLYN.</p>

<p>If Manhattan is chose, that reveals another pull down with zips for manhattan, if Brooklyn is chosen the same for BK.</p>

<p>in sample html, something along the lines like this:</p>

<pre><code>&lt;div&gt;

&lt;form&gt;
    &lt;select name="boro" id="boro"&gt;
        &lt;option value="manhattan" id="manh"&gt;Manhattan&lt;/option&gt;
        &lt;option value="brooklyn" id="brook"&gt;Brooklyn&lt;/option&gt;
    &lt;/select&gt;
&lt;/form&gt;

&lt;br/&gt;

&lt;div id="empty2fill"&gt;&lt;/div&gt;&lt;!-- for showing chosen results --&gt;

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

<p>i want to target/capture the option chosen by the user above on the pull down menu, to then activate this function(below).</p>

<p>according to his request what i guess id do is,(as a newbie), then as far as the .js goes (pseudo code):</p>

<pre><code>&lt;script type="text/javascript"&gt;
function valBoro (){
    if( brook is chosen){ document.getElementById('empty2fill').innerHTML=" new dropdown code here")

    }

}

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

<p>aside from not knowing, my main problem is i dont know how to target the option chosen in the menu to thereafter, apply the function (which will be written later)</p>

<p>any ideas, tips etc are greately appreciated.
thanks in advance</p>
