上面说了 就是直接:not() 括号里面 就是 选择器 把这些选择器中的 排除 #id .class 都是可以的
解决方案 »
- ExtJS editorgrid获取store的问题
- 怎么去掉水平滚动条呢?
- JavaScript源码分析
- jquery入门遇到问题
- JavaScript如何将日期从字符串(YYYY-MM-DD)转换为长整型?
- 哪位帮我解释下关于document.selection.createRange()的作用和用法?
- 怎样得到当前网页的源文件?要没有任何改动的。
- 怎样动态增加一个文本输入框?
- 如何取得IE窗口中任何一对象的X与Y坐标,给20分
- 我想用jq 或 js 获取 获取form里的多选和单选的值(选择和位选择的都要取出)
- jQuery中函数的执行顺序问题,请高手帮看一下。
- 导航菜单点击后,被选中项css变化 求代码
$("tr").first().nextAll().click(function (e) {
if($(e.target).is('input')) return;
//为点击的这一行切换样式bgRed里的代码:background-color:#FF0000;
//判断td标记的背景颜色和body的背景颜色是否相同;
//if ($(this).children().css("background-color") == 'transparent' || $(this).children().css("background-color") == 'rgb(255, 255, 255)')
if ($(this).children().find("input[name*='chkId']").prop('checked')) {
//如果相同,CheckBox.checked=true;
$(this).children().find("input[name*='chkId']").prop("checked", false);
$(this).children().removeClass("bgRed");
} else {
//如果不同,CheckBox.checked=false;
$(this).children().find("input[name*='chkId']").prop("checked", true);
$(this).children().addClass("bgRed");
}
});