Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery nextAll()的css选择器是什么_Jquery_Css - Fatal编程技术网

jquery nextAll()的css选择器是什么

jquery nextAll()的css选择器是什么,jquery,css,Jquery,Css,Jquery var obj = $('.grp[data-id=r7c1]').parent().nextAll("td").andSelf().slice(0, 3); obj.find(':checkbox').prop('disabled', true).toggleClass('grp done'); 上面代码的CSS选择器是什么 例:CSS input[type=checkbox][data-id=r7c1][disabled] + label:before{ conten

Jquery

var obj = $('.grp[data-id=r7c1]').parent().nextAll("td").andSelf().slice(0, 3);
obj.find(':checkbox').prop('disabled', true).toggleClass('grp done');
上面代码的CSS选择器是什么

例:CSS

input[type=checkbox][data-id=r7c1][disabled] + label:before{
    content:'done';
}
拜托,有人能帮我吗

提前感谢

试试这种类型

$(this).nextAll('td')

nextAll('td')
将是
~td
,但如果您试图从
.grp
升级到父级,则不能。有其他方法吗?请提供您的html@Dom如下:?
取决于范围。OP没有使用函数,因此
将引用
窗口
,或者更可能引用
文档
,如果它是在
文档.ready()中声明的(
$(function(){}
)。