Hi,
I got the answer from another forum, so I thought I'd post the answer. This code grabs the value from anything that's an "input" control and dumpit into an array - validations easy from there.
function validateGridData()
{
var inputs = [];
var i;
inputs = document.getElementById("<%=grdEmployeeBudget.Clie ntID %>").getElementsByTagName("input");
for (i in inputs)
{
if (i != "length")
{
if (isNaN(inputs[i].value) == true || inputs[i].value.length < 1)
return false;
}
}
return true;
}
|