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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:29:49+00:00 2026-05-26T04:29:49+00:00

I guess you all know how tables look like in phpmyadmin (I’m talking about

  • 0

I guess you all know how tables look like in phpmyadmin (I’m talking about the html tables which show the structure and data of the SQL tables). I’m looking to add a similar functionality to my html tables in which if the user clicks the table row, a checkbox on the left of the table would be checked, and if they click it again, the checkbox would turn to the default state which is unchecked, just like in phpmyadmin interface. Also tr color should change upon row click and change again to the default color specified by the css after the second click, again the same way it works in phpmyadmin.

  • 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-05-26T04:29:50+00:00Added an answer on May 26, 2026 at 4:29 am

    Very simple: http://jsfiddle.net/ZBF2r/2/

    First the hover effect:

    $('tr').bind('mouseover mouseout', function() {
        $(this).toggleClass("hover");
    });
    

    Then the click effect:

    $('tr').bind('click', function() {
        $(this).toggleClass("active");
    

    And then toggle the checkbox:

        $(this).find("input[type=checkbox]").prop("checked",
            (!$(this).find("input[type=checkbox]").prop("checked"))
        );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that this isn't exactly normalised, but bringing all of the localised data
I would like to dump a script for all the tables in the database.
I have two tables: events_archive and reports. The events table shows all information about
Here is what my tables look like: CREATE TABLE Author( authorID INT PRIMARY KEY,
Of all these methods what's being run and in what order?? I guess the
This is very basic magento question i guess. I want to first get all
I guess the real question is: If I don't care about dirty reads, will
I'm designing a Java application using SWT. I have some tables which will display
I have three mysql tables, first holds information about articles (Article ID, author ID,
Okay, so if you would like a back story, look at my previous question

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.