Integrate jQuery function in html page

Just edited: I have a strange problem with the jQuery function. My function works well on small jsFiddle in every browser example: http://jsfiddle.net/Ksb2W/72/
but if I want to integrate this function on my html page, it does not work in Google Chrome and IE8. It works fine on Firefox.

+3
source share
1 answer

From what I see, your click does not select the correct lines, because in your example there were different layouts on your live site.

In the example, your lines display 1: 1.

On a live site, your second table has two additional rows:

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

which, obviously, violates the conformity of your order.

, .

:

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

focus.js :

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

, .

Edit

, tbody - . javascript:

,

, not. , , tr.

not

+3

All Articles