var grid = document.getElementById("<%=grdInvoice.ClientID%>");
var inputs = grid.getElementsByTagName("input");
for (var i = 0; i < inputs.length; i++) {
if (inputs[i].type == "text") {
if (inputs[i].name == "txtAmount" || inputs[i].id == "txtAmount") {
amnt = parseInt(inputs[i].value);
alert(amnt.toString());
}
}
}
No comments:
Post a Comment