If the user inputs a numeric value into the quantity text box, then I would like to set the price and total textboxes to "0.00"
for that row only.
Please see the screen shot, all the textboxes in all rows changed.
How can I limit it by row?
$(document).ready(function
() {
$("[id$='_txtQuantity']").
blur(funct
ion () {
var quantity = $("[id$='_txtQuantity']").
val();
if (isNumeric(quantity)) {
$("[id$='_txtPrice']").val
('0.00');
$("[id$='_txtTotal']").val
('0.00');
}
});
});
function isNumeric(n) {
return !isNaN(parseFloat(n)) && isFinite(n);
}
http://api.jquery.com/val/