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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T03:03:47+00:00 2026-06-02T03:03:47+00:00

Just edited: I have a weird problem with a jQuery function. My function works

  • 0

Just edited:
I have a weird problem with a jQuery function. My function works well on a small jsFiddle on every browser example: http://jsfiddle.net/Ksb2W/72/
but if I want to integrate that function in my html page it is not working on Google Chrome and IE8. On Firefox works great.

  • 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-02T03:03:49+00:00Added an answer on June 2, 2026 at 3:03 am

    From what I can see, your click is not highlighting the correct rows because the tables on your live site had a different layout in your example.

    In the example your rows maps 1:1.

    On the live site your second table has two extra rows:

    <tr class="navigation"> ...
    <tr class="headers"> ...
    

    which obviously breaks your order-based matching.

    Your hover is broken because, again, your example is different from your live site.

    In your example you have:

    $(".table").each(function(){          
        $("tr:eq("+row+")",this).addClass("hoverx");
    });
    

    but on the live site in focus.js you have:

    $("table.grid tbody tr").each(function(){          
          $("tr:eq("+row+")",this).addClass("hoverx");
    });
    

    Note how you are looping over the rows in the second case.

    Edit

    I think using tbody to group the interactive rows is a nice solution to your problem of having additional rows in the second table. You could also simplify your javascript a bit as a result:

    Example with second table having more rows

    Per requested here’s what a solution using not would look like. Note you pretty much have to filter it out everywhere you select a tr.

    Example using not and making the minimum amount of changes to the original code

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

Sidebar

Related Questions

I just edited an .SWF file I have on my website home page for
EDITED: Just wondering if is it possible to add a function (or static script)
Really weird problem. I have a tableView that pulls data out of a Core
I think I have not explained correctly. So i have just edited the previous
Suppose I have the list, which I have edited so it's not just called
Edited: SOLUTION FOUND. This is strange and not the best solution, but I just
Just out of curiosity, how does iostream access the input-output system. (I have a
In response to the helpful comments, I have edited the original question (where I
I've come across a weird problem which I can't solve, no matter what i
[Editor's note: I have edited the title to try to make this useful to

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.