I have a long list of multiple div... let\'s say 20 div
All wrap in another one..
text text 3条回答 小鲜肉 (楼主) 2021-01-18 21:51 $('.xyz:odd').addClass('grey'); Do mind that 'grey' is not a semantic classname. Better call id 'odd' or 'zebra' or something. If you'd make up your mind and change the odd color to blue your classname would be real strange :P 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
$('.xyz:odd').addClass('grey');
Do mind that 'grey' is not a semantic classname. Better call id 'odd' or 'zebra' or something. If you'd make up your mind and change the odd color to blue your classname would be real strange :P