javascript - multiple :not jquery / ajax -


i have:

$(document).on('click','#audits-lines-grid table tbody tr td:not(td:nth-child(9n))',function(){(...) 

i need add :not(first-child) well.

i've tried several syntaxes, including

$(document).on('click','#audits-lines-grid table tbody tr td:not(td:nth-child(9n)):not(first-child)',function(){ 

but doesn't work, idea how right?

the :not selector can take multiple css selectors arguments ( http://api.jquery.com/not-selector ). e.g.

$('div:not(.a,.b)').empty() 

so, in case be:

td:not(:nth-child(9n), :first-child) 

final:

$(document).on('click','#audits-lines-grid table tbody tr td:not(:nth-child(9n), :first-child)',function(){(...) 

here demo jsfiddle well: http://jsfiddle.net/hffcp/


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -