[jQuery] Re: Alternate row colors using Ajax

2009-01-28 Thread Ricardo Tomasi
You need to put that code right after append(), like .appendTo('#update-target table') .find('tr:odd').addClass('alt'); }); //close each( On Jan 28, 12:47 pm, septemberbrain wrote: > Thanks.  I tried that but it did not work.  Tried placing it within > the function, outside the functi

[jQuery] Re: Alternate row colors using Ajax

2009-01-28 Thread septemberbrain
Thanks. I tried that but it did not work. Tried placing it within the function, outside the function, etc. I think the issue has something to do with the dynamic creation of the table. I've done this in the past with Spry which has operators that enable you to do this. I haven't been able to f

[jQuery] Re: Alternate row colors using Ajax

2009-01-28 Thread septemberbrain
Thanks. I tried that but it did not work. Tried placing it within the function, outside the function, etc. I think the issue has something to do with the dynamic creation of the table. I've done this in the past with Spry which has operators that enable you to do this. I haven't been able to f

[jQuery] Re: Alternate row colors using Ajax

2009-01-27 Thread donb
$("tr:odd","table.stripeme").addClass('altcolor'); is a way to stripe the rows. It is assumed there is a class 'altcolor' with a suitable background-color definition. On Jan 27, 4:43 pm, septemberbrain wrote: > I have some code that reads an xml file and outputs to a table.  I > would like the