[thelist] JS: onSubmit function seems to reset Select input?
Tab Alleman
Tab.Alleman at MetroGuide.com
Mon Nov 17 08:45:26 CST 2003
Marcus Andersson wrote:
>> Any way around it? It only has to work in IE (intranet project).
>
> The fix is very easy and it's all depending on a javascript bug. On
> line 43 in function TestDeletion you do an assignment (one =) in the
> if statement instead of an equality check (two ==)
>
> Change the line to
>
> if (document.forms[f].WhatToDo.selectedIndex == 4)
>
> and it should work as expected
Eep! Thanks...now if only that would have triggered an "errors on page"
alert, I might've figured it out too. : )
More information about the thelist
mailing list