[jQuery] Show a Div based on a Dropdown selection
So I have a dropdown with the 50 states in it.
I want to show a div based on the selection.
I understand pieces of what to do but not sure how to put it together.
<select id="stateList">
<option value="alabama">Alabama</option>
<option value="alaska">Alaska</option>
etc..
</select>
<div id="showState">
<!-- Show State Information here -->
<div id=alabama>
<h2>This is Alabama</h2>
</div>
<div id="alaska">
<h2>This is Alaska</h2>
<span> Alaska is bigger than Alabama>
<table>
<tr>
<td>population</td>
</tr>
</table>
</div>
anyway, hopefully that shows what I am going for.
Basically I only want to show the div of what option the person
selects.
Ive heard people mention a few methods, but No on will work through it
with me..
Any help would be appreciated.
-Brian