The following code works perfectly in Firefox, but not in IE or Chrome... Any ideas why?
<script type="text/javascript">
function display_div(show){
document.getElementById('passenger1').style.display = "none";
document.getElementById('passenger2').style.display = "none";
document.getElementById('passenger3').style.display = "none";
document.getElementById(show).style.display = "block";
}
</script>
<select name="#" id="#">
<option selected="selected"> </option>
<option onClick="display_div('passenger1');">1</option>
<option onClick="display_div('passenger2');">2</option>
<option onClick="display_div('passenger3');">3</option>
</select>
<div id="passenger1" style="display:none;"> hey, 1 works </div>
<div id="passenger2" style="display:none;"> hey, 2 works </div>
<div id="passenger3" style="display:none;"> hey, 3 works </div>