[thelist] JS: onSubmit function seems to reset Select input?
Tab Alleman
Tab.Alleman at MetroGuide.com
Wed Nov 19 08:30:18 CST 2003
James Aylard wrote:
> If you rewrite it as:
>
> if (4 == document.forms[f].WhatToDo.selectedIndex)
>
> and if you accidentally leave off one of the "equal" signs,
> you'll get an error (since you can't assign a value to a number).
> It's a good coding habit to get into.
Ooooh... Counter-intuitive, but clever. I like it! Thanks!
More information about the thelist
mailing list