Have you tried giving your row a specific class instead of using name?
eg.

$('tr.myRowClass').hover(
        function() {
                $(this).addClass("newClass");
        }, function() {
                $(this).removeClass("newClass");
        }
);


On Dec 20, 4:31 am, JQueryProgrammer <[EMAIL PROTECTED]> wrote:
> I have a table that displays n rows based on the records from the
> database. For a particular row that gets displayed n times, I have
> assigned a name to the row. The row already has some CSS applied to
> it. But I want that whenever I take the mouse over the row, the new CC
> should get applied and the on mouse out the old CSS should reapply.
>
> I tried the code as:
>
> $("tr[name='myRowName').hover(
>         function() {
>                 $(this).addClass("newClass");
>         }, function() {
>                 $(this).removeClass("newClass");
>         }
> );
>
> But it does not work. Can anyone let me know.

Reply via email to