Originally Posted by asem03
I use the DOM to change some INPUT node in my form (to hide and unhide a field). the problem is that this Input node appear in the INPUT list if I do a getElementByTagName('INPUT') but I can't have it in my formX.elements ... submitting the form won't send this field.
any idea to fix this?
form's elements are not submitted.
BTW, using DOM to go through the fields is a pain too because one cannot just use getElementsByTagName('INPUT') because there are also textarea and select.
Select is not an input tag. And you may use a simple type specification to get all the textfiels among the inputs
var allTxt=//the textfields collection
var allInp = document.getElementsByTagName('input')