Hi, I am trying to remove certain values from an array containing input fields in a form:
allFields = theForm.getElementsByTagName("INPUT");
for(j=0; j < allFields.length; j++){
if(allFields[j].className == "btn" || allFields[j].className == "lnk"){
allFields.splice(j,1);
}
}
It causes an error. Firebug shows "allFields.splice is not a function" error, and the script doesn't work.
This also happened with any other Array method I tried :(
Thanks in advance