You're currently finding
every textbox whose ID contains the string
txtValue
:
$("[id*=txtValue]")
If you only want to find the textboxes within the current grid, then you need to limit the scope of your search:
$(this).closest("table").find("[id*=txtValue]")
Each
GridView
renders an HTML
<table>
. You need to find the nearest
<table>
which is an ancestor of the current element, and then find all matching textboxes within that
<table>
.