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 8999609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:12:10+00:00 2026-06-16T00:12:10+00:00

I hope this is the right area, as it is more theoretical than anything

  • 0

I hope this is the right area, as it is more theoretical than anything else. I am currently working on a page where a user can select one or many rows to edit by clicking a checkbox in the leftmost column and clicking an Edit button. I haven’t decided if I wanted to try programming this feature, but would it be possible to effectively hide the checkboxes and use some sort of javascript or jquery to make clicking a row in a table equivalent to checking the corresponding row’s checkbox? I have just started working with javascript and jquery, and I am baffled by how powerful this can be. Please inform me if this type of functionality is possible and if so, what is a general approach to achieving this behavior?

  • 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. Editorial Team
    Editorial Team
    2026-06-16T00:12:11+00:00Added an answer on June 16, 2026 at 12:12 am

    Doable. Here’s how:

    jsbin link

    HTML

    <table border=1>
        <tr><td><input type="checkbox"></td><td>Something 1</td><td>Something else 1</td></tr>
        <tr><td><input type="checkbox"></td><td>Something 2</td><td>Something else 2</td></tr>    
        <tr><td><input type="checkbox"></td><td>Something 3</td><td>Something else 3</td></tr>    
        <tr><td><input type="checkbox"></td><td>Something 4</td><td>Something else 4</td></tr>
    </table>
    

    jQuery

    $('input[type=checkbox]').parent('td').hide(); // If JS disabled, checkboxes are still visible
    
    $('table tr').click( function() {
        var $chk = $(this).find('input[type=checkbox]');
        $chk.prop('checked',!$chk.prop('checked'));
        $(this).toggleClass('selected'); // To show something happened
    });
    

    CSS

    tr.selected{
       background-color:#ccc;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My first post here, so i hope this is the right area. I am
I hope I can explain this right I have two input fields that require
I hope I can explain this problem right, it's a bit confusing for me.
I hope someone can help me here. I'm having trouble loading this variable. Right
I hope this is the right place to post this and somebody can help.
Hope this is the right place to be asking this, so my apologies if
I hope this is the right place to ask this. I would like to
I hope this question isn't too open ended, but a nudge in the right
Hope this isn't a waste of your time. I'm working on a project, and
I hope this is the right place to ask this. If not, please advise

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.