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

Is there any Java library that supports hierarchical column? For example (the first three
I've got a grid, currently with three columns. The first column contains a WrapPanel.
I would like to search my table having a column of first names and
First, let's get the security considerations out of the way. I'm using simple authentication
First off, I am using Windows XP. I have multiple hard drives and it
I have an array of arrays and I want to copy the first column
I need to create a view that renders text in columns with a first
I am interested only in a column of a file, (I can not load
First off, I understand the reasons why an interface or abstract class (in the
First off if you're unaware, samba or smb == Windows file sharing, \\computer\share etc.

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.