i'm not able to get the value of description here. i need to know am i missing something.
$(".numeric").live("change", function (e) {
$('.numeric').each(function (i, item) {
if (isNaN(parseInt($(item).val()))) {
}
else {
var amount = parseInt($(item).val());
$('.Descrpt').each(function (ander, itema) {
var discription = parseInt($(this).val()); // <No Value here>
if (ander == i) {
if ((amount > 0 && (!discription)) || (amount < 0 && (!discription))) {
alert("Amount and description both are required");
return false;
}
}
});
}
});
});
i have a gridview and two columns with textboxes . i want either both should be empty or filled. Please see the issue code is being executed correctly but gertting NaN in description.
One more question how we can get id of these textboxes as i'm using master page.