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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:30:48+00:00 2026-06-01T23:30:48+00:00

I have a scrollable table with last column fixed because that column contain action

  • 0

I have a scrollable table with last column fixed because that column contain action buttons.
On html code they looks like: two divs with a table in each div, first div contain main table and on second div I have a table with only one column on which I have added action buttons. On tables I have a hover effect when cursor pass over tr td and on focus I applied a different background in order to highlights selected registration from table.
My problem is how can I have that hover and focus effect over booth tables in the same time when cursor pass over tr td because now they works independently on each table.

Please check my live example: http://mainpage.ueuo.com/

thank you.

  • 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-01T23:30:50+00:00Added an answer on June 1, 2026 at 11:30 pm

    look here http://jsfiddle.net/Ksb2W/5/

    $(function(){
    $('table tr td').click(function () { 
             var selected = $(this).parent(); 
             var index = selected.GetIndex();
                var parentOfRow = $(selected.parent()[0].tagName);
    
             //First remove the selectedRow class
            $(".selectedRow",parentOfRow).removeClass("selectedRow");
            parentOfRow.each(function(){
                   $("tr:eq("+index +")",this).addClass("selectedRow");
             });
        });
    $("tr").hover(function(){
         var row = $(this).GetIndex();
        $(".table").each(function(){          
              $("tr:eq("+row+")",this).addClass("hoverx");
        });
    },function(){         
         var row = $(this).parent().children().index($(this));
        $(".table").each(function(){          
              $("tr:eq("+row+")",this).removeClass("hoverx");
        });
    });
    });
    
        jQuery.fn.GetIndex = function(){
            return $(this).parent().children().index($(this));
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, I am stumped. I have an HTML table that is within a fixed
I have a table that displays a column of test names, with several (unlimited
I have a scrollable div that contains a table with many rows (100+). I
I have a parent JSP with code that looks like <jsp:include page='a.jsp' flush='true'/> <jsp:include
I have a table which needs to be scrollable within a single page. I've
Google Reader and Gmail have scrollable divs that has a shadow on top if
I am using the jQuery Tools Scrollable plugin - http://flowplayer.org/tools/scrollable.html#navigator I have created a
I have used t:commanSortHeader in my table and i need that table to have
I have HTML Like Below. I have a table inside another table.Each TD in
I wrote a JS code that generates a table and plugs it into a

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.