The following code points to the event change
of a textbox
(column 3).
I want to recover the value in a asp:TextBox
of a GridView
(Column 5)
$("#<%=GridEdos.ClientID%> [id*='txtBox']").change(function () {
var tr = $(this).parent().parent();
var ValEsta = $("td:eq(5)", tr).html();
$("td:eq(4) span", tr).html(parseFloat($(this).val()) + ValEsta);
});
The idea is to add both values and put the sum of both. However what I get is (I hope to be clear) the value of column 3 followed by a text box and in the value that I look for.
If in var ValEsta
I receive the text box, how do I point to the value inside that box?