I select a textbox in a gridview row.
I know that a gridview is a html-table.
How can I find out whether the td where the textbox is in is the next to last td in the tr of the table with jQuery?
<asp:GridView runat="server">
<Columns>
<asp:TemplateField HeaderText="Standardpreis">
<ItemTemplate>
<asp:TextBox runat="server" ID="valueTxt"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</Columns>
Something like this in the event for the child element
example jsfiddle