多个 :不是 jquery / ajax.
multiple :not jquery / ajax
>我目前有:
$(document).on('click','#audits-lines-grid table tbody tr td:not(td:nth-child(9n))',function(){(...)
我还需要添加一个:not(第一个孩子)。
我尝试了几种语法,包括
$(document).on('click','#audits-lines-grid table tbody tr td:not(td:nth-child(9n)):not(first-child)',function(){
但它不起作用,知道如何做到这一点吗?
:not
选择器可以将多个 CSS 选择器作为参数(http://api.jquery.com/not-selector )。例如
$('div:not(.a,.b)').empty()
因此,在您的情况下是:
td:not(:nth-child(9n), :first-child)
最后:
$(document).on('click','#audits-lines-grid table tbody tr td:not(:nth-child(9n), :first-child)',function(){(...)
这也是演示jsfiddle: http://jsfiddle.net/HFfcP/
相关文章:
- 在FrontEndphp-ajax-jquery中验证reCaptcha-google
- AJAX jquery json将数组发送到php
- 如何使用Ajax/jQuery设置cookie
- PHP/Ajax/jquery/JON-在Ajax Post之后将echo文本中的一部分作为变量返回
- 如何使用Ajax JQuery.ech()获取JSON值
- 使用springform时,如何在ajax/jquery中获取复选框值
- JSP AJAX jQuery填充表问题
- Piping Value: Ajax + JQuery
- 使用javascript Without Ajax/Jquery在特定行中启用文本框
- 在AJAX jQuery加载()之后运行jQuery代码
- 具有动态更新的实时标题 (AJAX+jQuery)
- ajax/jQuery Youtube 播放列表推送
- AJAX jQuery Avatar Uploading
- 全局变量 - AJAX jQuery
- Ajax jquery mysqli update
- 获取剩余时间和上传文件速度 - ajax jquery/js
- 使用ajax/jquery绑定Json数据
- TypeError Obj.root是未定义的ajax jquery
- 当数据类型为XML时,如何将url参数传递给AJAX jquery
- 在ajax Jquery之后无法获取隐藏字段的值