selecting even/odd elements....

selecting even/odd elements....


  1. $('#wrapper> .inner:nth-child(even)').addClass('td-even ');

this is not working for me, b/c there are other children of "#wrapper that do not have class 'inner'...  so how can I do this so it selects only the even elements that have class "inner"?? (I thought that's what this code did..... ;-) 

(can't post url, don't have access to FTP at work.. but question is simple that I hope I don't have to....;-)




thank you....