Oh, I got it. this is my way. $('tr td:first-child').removeClass('selected'); $(this).addClass('selected');
- [jQuery] about siblings().removeClass with td:first-child problem... YuanYuan
- [jQuery] Re: about siblings().removeClass with td:first-chil... YuanYuan