Hi<br /><br />I need to manipulate fields in a subform recursively.<br /><br />I have the following code that works perfectly...<br /><br />for (var i=0; i<oSubform.nodes.length; i++) {<br /> var oObject = oSubform.nodes.item(i);<br /> if (oObject.className == "field") {<br /> // do stuff<br /> } else if (oObject.className == "subform") {<br /> // do some other stuff<br /> }<br />}<br /><br />The problem is the "className" equals "field" for almost any type of field - checkbox, radio, textfield, numeric field, etc. We need to do slightly different things depending on the type of field.<br /><br />Does anyone know if there's a way to determine the "field-type"?<br /><br />Many thanks,<br />Howard