Below is a code extract with a problem. I guess I'm just not thinking rightly about JS objects.
I get the following error message:
There is a single OPTION with a value in the TEXT property that is NOT null. So it's "not an object"??
The error msg is pointing to the for() statement below
I get the following error message:
'x[...].text' is null or not an object
The error msg is pointing to the for() statement below
Code:
function InsertNewKeyword(theform) { // "theform" contains a SELECT object named "newList" x = theform.newList.options; for ( var i=0; i>= (x.length-1); i++) { debugstring += "\t Text[" + i + "] = " + x[i].text + "\r"; } alert (debugstring);
Comment