Quote:
Originally Posted by Old Pedant
DOH on me! OF COURSE!
The whole reason his code didn't work was because he used document.form[0] instead of document.forms[0]!!!
Good eyes, Philip!
|
Follow Logic Ali's advice - use the error console!
Another good reason to use
var f = document.forms[0];
But as you say id is preferred
var f = document.getElementById("formid");