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

  • Home
  • SEARCH
  • 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 8080155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:19:47+00:00 2026-06-05T16:19:47+00:00

<table border=2> <tr class=here1 yes> <td>aaa1</td><td>bbb1</td> </tr> <tr class=here2 yes> <td>aaa2</td><td>bbb2</td> </tr> <tr class=here55

  • 0
<table border=2>
    <tr class="here1 yes">
        <td>aaa1</td><td>bbb1</td>
    </tr>
    <tr class="here2 yes">
        <td>aaa2</td><td>bbb2</td>
    </tr>

    <tr class="here55 yes">
        <td>aaa3</td><td>bbb3</td>
    </tr>
</table>


<table border=2>
    <tr class="here1 yes">
        <td>ccc1</td><td>ddd1</td>
    </tr>
    <tr class="here2 yes">
        <td>ccc2</td><td>ddd2</td>
    </tr>

    <tr class="here55 yes">
        <td>ccc3</td><td>ddd3</td>
    </tr>
</table>


.yes:hover {
   background-color: red;
}

LIVE: http://jsfiddle.net/KzzW8/

The above table is generated with the following PHP:

 `<tr class="here<? echo $i ?> yes">`

I would like a mouseover on TR.here1 to turn the contents of any TR.here1 to RED where the subordinate TD is in the group: (aaa1, bbb1, ccc1, ddd1) regardless of which table it is in.

I believe I can use jQuery for this. Is this possible?

  • 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-05T16:19:48+00:00Added an answer on June 5, 2026 at 4:19 pm

    http://jsfiddle.net/KzzW8/1/

    $('tr').hover(function() {
        var cls = $(this).prop('class').match(/here\d+/);
        if (cls) {
            $('.' + cls).addClass('hover');
        }
    }, function() {
        $('.yes.hover').removeClass('hover');
    });​
    

    So you on hover event get the here* class and apply class .hover to all the rows with the same class. On hover out – you remove all the additionally added classes

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

Sidebar

Related Questions

I have created a php table like so: echo <table border = '0' cellpadding
CSS table tr {border-bottom:1px solid #008999} HTML <table width=100% cellspacing=0 cellpadding=0> <thead> <tr> <th
How can I make a table with a round border, similar to the photo
I want to create a html table with a 1pt black outer border and
I have an HTML table with collapsed and adjacent borders and a standard border
I have following CSS: table tbody tr:last-child td { padding-top: 7px; border-bottom: 0; }
I have a table as below; <table style=width: 100%; border: solid 1px #666600; min-width:
I have the following HTML table: <table style=width: 100%;> <tr> <td class=title_bar_left_border></td> <td class=title_bar_middle></td>
I have problems with CSS. The table is creating white border and I do
The code is pretty simple: <table id=tabel_user style=width: 100%; border: 0; background-color: white; cellpadding=0

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.