I have a small problem with a form, it works in FF but not in IE. I have a select menu <select name="system" id="system"> <option value="/resources/bmicalculator.php" <?php if ($system=="us") {} else {echo "selected";}?> onClick="jump('/resources/bmicalculator.php');">Metric System</option> <option value="/resources/bmicalculator.php?system=us" <?php if ($system=="us") {echo "selected";}?> onClick="jump('/resources/bmicalculator.php?system=us');">US System</option> </select> Code (markup): when somebody clicks on one of the selections it jumps them to a different page with the following js function jump(address) { document.location.href=address; } Code (markup): any idea whats wrong?
Do <select name="system" id="system" onchange="jump(this.value);"> HTML: EDIT: And it should be window.location
I use the following: <select name="system" id="system" onchange="jump(this.value);" onFocus="jump(this.value);"> Code (markup):