12 回答

TA贡献1799条经验 获得超6个赞
$(document).ready(function () {
$("#divExpress").find(".rbox").each(function () {
$(this).click(function () {
$(this).parent().parent().parent().children().removeClass("focus");
$(this).parent().parent().toggleClass("focus", this.checked);
});
});
});
希望有用

TA贡献1852条经验 获得超1个赞
$('#divExpress li').each(function(){
$(this).click(function(){
$('#divExpress li').removeClass('focus');
$(this).addClass('focus');
});
});

TA贡献1789条经验 获得超10个赞
@暗尘掩月:
$('.rbox').each(function(){
$(this).click(function(){
$('.rbox').removeClass('focus');
$(this).addClass('focus');
});
});

TA贡献1815条经验 获得超6个赞
$('.rbox').each(function(){
$(this).click(function(){
$('.rbox').removeClass('focus');
$(this).addClass('focus');
});
});

TA贡献1921条经验 获得超9个赞
@暗尘掩月: 不急不急,马上来
$('.rbox').each(function(){
$(this).click(function(){
$('#divExpress li').removeClass('focus');
$(this).parent().prev().prev().addClass('focus');
});
});

TA贡献1858条经验 获得超8个赞
$('.rbox').each(function(){
$(this).click(function(){
$('#divExpress li').removeClass('focus');
$(this).parent().prev().prev().addClass('focus');
});
});

TA贡献1785条经验 获得超8个赞
$(function () {
$(":radio").click(function () {
if (this.checked) {
$(this).parent("span").parent("li").addClass("p");
}
});
});再修改修改吧!
添加回答
举报