if you mean how many elements of tagname "input", then:
[tt]
<script language="javascript">
function countInputs() {
var e = document.formName.elements;
var iNumInputs = 0;
for (x = 0; x < e.length; x++) {
if (e[x].tagName.toLowerCase() == "input" ++iNumInputs;
}
alert(iNumInputs + " total inputs."
}
</script>
[/tt]
total number of form elements is [tt]
document.formName.elements.length;[/tt]
=========================================================
if (!succeed) try();
-jeff
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.