Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 178091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:10:14+00:00 2026-05-11T14:10:14+00:00

The first column in my gridview (gvAvailable) is a currently checkbox column chkSelect. The

  • 0

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.

I was also looking for a way to access the columns of the checked row with jquery on a button click.

Thanks for any help

Here’s how the generated html looks

<table class='Grid' cellspacing='0' border='0' id='gvAvailable' style='width:99%;border-collapse:collapse;'> <tr class='GridHeader'> <th scope='col'>&nbsp;</th><th scope='col'>Guid</th><th scope='col'>Id</th><th scope='col'>Name</th>     <th scope='col'>Facility</th><th scope='col'>Room</th> </tr> <tr class='GridItem'>     <td>         <input id='gvAvailable_ctl02_chkSelect' type='checkbox' name='gvAvailable$ctl02$chkSelect' />     </td>     <td>24</td>     <td>000101020201</td>      <td>Test</td>      <td>Test Facility</td>      <td>&nbsp;</td> </tr><tr class='GridAltItem'> <td>     <input id='gvAvailable_ctl03_chkSelect' type='checkbox' name='gvAvailable$ctl03$chkSelect' /> </td> <td>25</td> <td>1001</td> <td>Test 2</td> <td>Test 3</td> <td>&nbsp;</td> </tr> </table> 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:10:14+00:00Added an answer on May 11, 2026 at 2:10 pm

    if you add the same class to each of the checkboxes in the markup, you can retrieve an array of them by saying

    $('.classname') 

    This will give you back the array of objects. You can then call ‘each’ on the array and deselect them all.

    function removeChecks() {         $('.classname').each(function()     {          $(this).removeAttr('checked');     }); } 

    Then add the above function call in the click handler for the each checkbox:

    $('.classname').each(function() {     $(this).click(function()     {         removeChecks();         $(this).attr('checked', 'checked');     }); }); 

    the code above should be set up to run on page load.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used checkbox column in gridview. I want to check status of that
I have a gridview in which the first column in a checkbox. The grid
I have a GridView with a Checkbox on the first column: <asp:GridView ID=dgNumeradores runat=server
I currently have an ASP.NET GridView that displays a few columns to the user
I've got a WPF ListView/GridView spec'd in XAML. The first column uses a CellTemplate
I have a listview <ListView Name=listView2> <ListView.View> <GridView> <!-- First Column --> <GridViewColumn Width=105
I have a jTable with two columns.First column is set as Boolean(for checkbox) and
How can I align the first column to the right and second column to
What do you call the first column in a GridView? This is the leftmost
I have a gridview with 13 pages with 5 item each. The first column

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.