Hello all,
I'm trying to create dynamic options for a March Madness tournament that updates later rounds when someone selects a previous one. They work in Firefox but don't work in Internet Explorer.
Here's the code...
form_name = "re"+region+"_r"+round+"_g"+game;
if (document.forms['make_picks'].eval(form_name).options[slot].selected)
{
document.forms['make_picks'].eval(form_name).options[slot].value = team;
document.forms['make_picks'].eval(form_name).options[slot].text = '#'+team;
}
-form_name is the name of the particular select input for each game. Region, round, and game are all numbers that are input in the particular function I'm creating.
-This works great in Firefox. However, with IE, there is a problem with the eval(form_name) part.
Is there a better way to go about this?
Any help would be greatly appreciated.
Chris
I'm trying to create dynamic options for a March Madness tournament that updates later rounds when someone selects a previous one. They work in Firefox but don't work in Internet Explorer.
Here's the code...
form_name = "re"+region+"_r"+round+"_g"+game;
if (document.forms['make_picks'].eval(form_name).options[slot].selected)
{
document.forms['make_picks'].eval(form_name).options[slot].value = team;
document.forms['make_picks'].eval(form_name).options[slot].text = '#'+team;
}
-form_name is the name of the particular select input for each game. Region, round, and game are all numbers that are input in the particular function I'm creating.
-This works great in Firefox. However, with IE, there is a problem with the eval(form_name) part.
Is there a better way to go about this?
Any help would be greatly appreciated.
Chris