My guess:
You're doing an Ajax call which is loading an HTML chunk that's also
pulling in a fresh copy of jQuery and re-applying the even/odd
styling.

--John

On 10/22/07, Deane <[EMAIL PROTECTED]> wrote:
>
> I'm using jquery to zebra-stripe some tables.  On one page, the jquery
> consistently displays the same odd behavior.
>
> Here's my code:
>
> $("table.Data tr:even").addClass("EvenRow");
>
> On the first table on the page (the page has several), it applies the
> "EvenRow" class to the first eight rows (instead of alternating), then
> starts working normally for the rest of the page.
>
> Additionally, in the rows where it acted oddly, I find things like
> this:
>
> <tr class="EvenRow" jquery1191784494053="9" jquery1191628120598="9">
>
> It's the same seemingly random number every time, thought the value is
> different (a single-digit number, one through 10).
>
> Has anyone ever seen this before?  Why is it applying the "EvenRow"
> class to the first eight rows?  And what's with the weird attribute?
>
> (All DOM information found via FireBug.)
>
>

Reply via email to