SoFunction
Updated on 2025-02-28

javascript traversal to verify the values ​​of all text boxes


var aa = ("input");
var bb = 0;
for(var i=0;i<;i++)
{
var avalue = aa[i].value;
var atype = aa[i].type;
if(atype == "text")
bb++;
}
alert("Total"+bb+"item text")