How can I alert the value selected by user from a select drop down box in Javascript. In this example I want to store the value inside a variable and alert it to the user.
<script type="text/javascript">
function processmyform() {
var chosenAnimal = // what goes here
alert(chosenAnimal);
}
</script>
<form action="">
<select name="animal" class="favAnimal">
<option value="dog">Dog</option>
<option value="cat">Cat</option>
<option value="bird">Bird</option>
</select>
<a href="#" onclick="processmyform()" />
</form>