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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:40:08+00:00 2026-05-11T15:40:08+00:00

I need to highlight a table row on mouse over. Seems like an easy

  • 0

I need to highlight a table row on mouse over. Seems like an easy enough thing to do, right? Especially using jQuery. But alas, I’m not so lucky.

I’ve tested different solutions for highlighting a table row, but nothing seem to work 🙁

I have tested the following scripts:

// TEST one     jQuery(document).ready(function() {     jQuery('#storeListTable tr').mouseover(function () {      $(this).parents('#storeListTable tr').toggleClass('highlight');      alert('test'); // Just to test the mouseover event works   });   });  //TEST 2 jQuery(document).ready(function() {      $('#storeListTable tbody tr').hover(       function() {  // mouseover            $(this).addClass('highlight');       },       function() {  // mouseout            $(this).removeClass('highlight');       }     ); }); 

This is my HTML code

<html>    <head>    <title>Title</title>    <link rel='stylesheet' href='css/storeLocator.css' type='text/css'  media='screen' charset='utf-8' />    <script type='text/javascript' src='js/jquery.js' charset='utf-8'></  script>    </head>    <body>   <table id='storeListTable'>      <thead>        <tr class='even'>          <th>ID</th>          <th>Navn</th>          <th>E-post</th>          <th>Nettside</th>        </tr>      </thead>      <tbody>        <tr class='' id='store1'>          <td>10</td>          <td>Boss Store Oslo</td>          <td> <a href='mailto:'>E-post</a></td>          <td> <a href='#'>www</a></td>        </tr>        <tr class='' id='store3'>          <td>8</td>          <td>Brandstad Oslo City</td>          <td> <a href='mailto:a@brandstad.no'>E-post</a></td>          <td> <a href='#'>www</a></td>        </tr>        <tr class='even' id='store4'>          <td>7</td>          <td>Fashion Partner AS</td>          <td> <a href='mailto:b@fashionpartners.com'>E-post</a></td>          <td> <a href='#'>www</a></td>        </tr>        <tr class='' id='store5'>          <td>1</td>          <td>Follestad</td>          <td> <a href='mailto:c@online.no'>E-post</a></td>          <td> <a href='#'>www</a></td>        </tr>        <tr class='even' id='store6'>          <td>2</td>          <td>Follestad</td>          <td> <a href='mailto:d@follestad.com'>E-post</a></td>          <td> <a href='#'>www</a></td>        </tr>      </tbody>    </table>    </body>  </html> 

So…. could anyone give me a push in the right direction?


UPDATE

I’m not using jQuery to highlight table rows any more, but CSS.

This is for list elements, but I’m guessing this will work for table rows as well:

li:nth-child(odd) { background-color: #f3f3f3; }

  • 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-11T15:40:08+00:00Added an answer on May 11, 2026 at 3:40 pm

    Try this plugin http://p.sohei.org/jquery-plugins/columnhover/

    Here’s how you use it.

    <script type='text/javascript'>      $(document).ready(function()     {         $('#storeListTable').columnHover({ hoverClass:'highlight'});     }); </script>  

    Take care

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

Sidebar

Ask A Question

Stats

  • Questions 285k
  • Answers 285k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I suspect that the problem is that you're not reading… May 13, 2026 at 4:48 pm
  • Editorial Team
    Editorial Team added an answer You are on the right path. In your migration, use… May 13, 2026 at 4:48 pm
  • Editorial Team
    Editorial Team added an answer Our array of objects var someData = [ {firstName: "Max",… May 13, 2026 at 4:48 pm

Related Questions

I have created a table in ASP MVC and populate it with data from
I have a requirement in which i need to display in formation in a
I'm kind of new to this so please bear with me... Let's say I
I have a table (client) with 20+ columns that is mostly historical data. Something

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.