Using jquery, how do i tell which select option is selected, and "show" a single corresponding hidden div?
<select id="mySelect">
<option value="1">First</option>
<option value="2">Second</option>
<option value="3">Third</option>
</select>
<label for="name">Name</label>
<input id="name" type="text" />
<button id="search">search</button>
<div id="results-A"> lorem ipsum </div>
<div id="results-B"> lorem ipsum </div>
<div id="results-C"> lorem ipsum </div>
$(document).ready(function(){
$("#results-A").hide();
$("#results-B").hide();
$("#results-C").hide();
$("#search").bind("click", function() {
});
});