Note that there are some explanatory texts on larger screens.

plurals
  1. POJquery Functions for operations on gridview with checkboxes
    primarykey
    data
    text
    <p>The first column in my gridview (gvAvailable) is a currently checkbox column "chkSelect". The way it works now is that a user can check multiple checkboxes on a gridview, but I would like a jquery function to deselect all the checkboxes on the gridview except for the checkbox that was clicked.</p> <p>I was also looking for a way to access the columns of the checked row with jquery on a button click.</p> <p>Thanks for any help</p> <p>Here's how the generated html looks</p> <pre><code>&lt;table class="Grid" cellspacing="0" border="0" id="gvAvailable" style="width:99%;border-collapse:collapse;"&gt; &lt;tr class="GridHeader"&gt; &lt;th scope="col"&gt;&amp;nbsp;&lt;/th&gt;&lt;th scope="col"&gt;Guid&lt;/th&gt;&lt;th scope="col"&gt;Id&lt;/th&gt;&lt;th scope="col"&gt;Name&lt;/th&gt; &lt;th scope="col"&gt;Facility&lt;/th&gt;&lt;th scope="col"&gt;Room&lt;/th&gt; &lt;/tr&gt; &lt;tr class="GridItem"&gt; &lt;td&gt; &lt;input id="gvAvailable_ctl02_chkSelect" type="checkbox" name="gvAvailable$ctl02$chkSelect" /&gt; &lt;/td&gt; &lt;td&gt;24&lt;/td&gt; &lt;td&gt;000101020201&lt;/td&gt; &lt;td&gt;Test&lt;/td&gt; &lt;td&gt;Test Facility&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt;&lt;tr class="GridAltItem"&gt; &lt;td&gt; &lt;input id="gvAvailable_ctl03_chkSelect" type="checkbox" name="gvAvailable$ctl03$chkSelect" /&gt; &lt;/td&gt; &lt;td&gt;25&lt;/td&gt; &lt;td&gt;1001&lt;/td&gt; &lt;td&gt;Test 2&lt;/td&gt; &lt;td&gt;Test 3&lt;/td&gt; &lt;td&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload