Code:
<html>
<head>
<script type="text/javascript" defer="defer">
function Rafter(){
var dropdownValue = document.getElementById('fromloc').value;
var changer = document.getElementById('fromAddress');
if (dropdownValue == "RDU Airport") {
changer.value = "1050 Airside Dr Morrisville, NC";
}
if (dropdownValue == "CLT Airport") {
changer.value = "5501 Josh Birmingham Parkway Charlotte, NC";
}
else {
changer.value = "Waiting on input...";
}
}
</script> </head>
<body>
<select size="1" name="fromloc" id="fromloc" onchange="Rafter();">
<option value="select">Select from list or enter address below</option>
<option value="RDU Airport">RDU Airport</option>
<option value="CLT Airport">CLT Airport</option>
</select>
<input type="text" name="from" id="fromAddress" size="15" /></td>
</body>
</html>
for some damn reason the clt works but rdu does not wtf? i cant seem to see what im missing