How to check only few checkbox of a gridview using Jquery?
<p>I have a grid with few columns </p>

<pre><code>&lt;div id="AbstractDiv" runat="server" class="DivGrid"&gt;
&lt;asp:GridView GridLines="None" ID="Abstract_GridView" runat="server" AutoGenerateColumns="False" CssClass="Grid" CellPadding="0"&gt; 
&lt;Columns&gt;
&lt;asp:TemplateField HeaderText="Select"&gt;
 &lt;HeaderTemplate&gt;
 &lt;asp:CheckBox ID="AllChk" runat="server" TabIndex="3"  CssClass="smallCheckbox"/&gt;
 &lt;/HeaderTemplate&gt;
 &lt;ItemStyle HorizontalAlign="Center" /&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:CheckBox ID="SelectChk" runat="server" TabIndex="5" CssClass="smallCheckbox" /&gt;
 &lt;/ItemTemplate&gt;
 &lt;/asp:TemplateField&gt;
&lt;asp:TemplateField&gt;
 &lt;ItemTemplate&gt;
 &lt;asp:HiddenField ID="EqpNo" runat="server" value='&lt;%# Bind("Equipmnt_No") %&gt;' /&gt;
 &lt;/ItemTemplate&gt;
&lt;/asp:TemplateField&gt;
&lt;/Columns&gt;
  &lt;/asp:GridView&gt;
 &lt;/div&gt;
</code></pre>

<p>I'm facing problem in checking few checkbox together.I have a column EqpNo, all rows whose EqpNo matches with the selected row that row checkbox should get checked.</p>

<p>I referred <a href="http://stackoverflow.com/questions/9355889/asp-net-grid-view-select-row-using-jquery">url</a> but it is just allowing to check one row. Below is my Jquery code which is checking all rows instead of only matched one.</p>

<pre><code>$('#&lt;%=Abstract_GridView.ClientID %&gt;').delegate('tr', 'click', function () {
 var SelectRowEqpNo = $(this).find("input[id*=EqpNo]").attr("value"); //trying to get the clicked row EqpNo
 $('#&lt;%=Abstract_GridView.ClientID %&gt; tr input[id*="EqpNo"]').each(function () {
   var Eachrw = $(this).val(); //getting each row EqpNo
   if (SelectRowEqpNo == Eachrw) { //Comparing both values if matching 
$('#&lt;%=Abstract_GridView.ClientID %&gt; tr input[id*="SelectChk"]:checkbox').attr('checked', true);              
}
  });
});
</code></pre>
