klown
Nov 22nd 2006, 6:47 pm
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>
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;
}
any idea whats wrong?
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>
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;
}
any idea whats wrong?