[thelist] Newbie DOM question

Paul Bennett Paul.Bennett at wcc.govt.nz
Wed Aug 16 17:13:25 CDT 2006


In this line:
                 if (inputType[i].nodeValue = "text") {

You're setting every node value to 'text'.

The line should read:
if (inputType[i].nodeValue == "text") {

(note the extra '=')

:)
Paul



More information about the thelist mailing list