jquery的选择器问题 jquerycheckbox 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $("form").find("label").eq(1).find("input[type=checkbox]").click(function(){ $this1=$(this).parent().parent().parent().siblings().find("form").find("label"); $this1.eq(1).find("input[type='checkbox']").hide();}也不达到预想效果。 $(".shu .c").each(function(){ $(this).click(function(){ if($(this).prop("checked")){ $(".shu .c").prop("disabled",true); $(this).prop("disabled",false) }else{ $(".shu .c").prop("disabled",false) } });})给第二个input加上一个c的类 这样写 $('.shu :checkbox').each(function(i) { if(i % 2) $(this).click(function() { var n = 0; $('.shu :checkbox').each(function(j) { if(j % 2) { if($(this).prop("checked")) n++; } }); if(n>1) return false; }); }); 这样写,更简单 $('.shu').each(function(i) { $(this).find(':checkbox:eq(1)').click(function() { var n = 0; $('.shu').each(function() { if($(this).find(':checkbox:eq(1)').prop("checked")) n++; }); if(n>1) return false; }); }); JMail服务器端报错 这个怎么跳转到自定义页面 浏览器不提示js错误 JQuery在IE6.0的问题 能解码吗? 请问IE浏览器下的编程能否实现点对点通讯,象QQ那个 与layer、iframe相关的组件是那些?详细描述见正文,大把给分。。。 如何传值 急啊!哪位帮忙看看树型结点名的问题!解决了给360分! document.form1.txt+'i'.value怎么不对,大家帮我看看应该怎么写!谢谢 javascript:void(0)在此外的用意是啥 js向指定位置插入表情或者文字
$this1=$(this).parent().parent().parent().siblings().find("form").find("label");
$this1.eq(1).find("input[type='checkbox']").hide();
}也不达到预想效果。
$(this).click(function(){
if($(this).prop("checked")){
$(".shu .c").prop("disabled",true);
$(this).prop("disabled",false)
}else{
$(".shu .c").prop("disabled",false)
}
});
})给第二个input加上一个c的类
if(i % 2) $(this).click(function() {
var n = 0;
$('.shu :checkbox').each(function(j) {
if(j % 2) {
if($(this).prop("checked")) n++;
}
});
if(n>1) return false;
});
});
$(this).find(':checkbox:eq(1)').click(function() {
var n = 0;
$('.shu').each(function() {
if($(this).find(':checkbox:eq(1)').prop("checked")) n++;
});
if(n>1) return false;
});
});