You can do the following: first select all td with groupId! = 1, and then select those with the groupId parameter from this jQuery set:
$('td[groupId!= 1]').filter('[groupId]');
IMHO this is completely logical, td, which does not have groupId, has groupId, which is not equal to 1, so they are added to the result set. Or put it in code:
var x = {};
typeof x.foo === 'undefined';
x.foo !== 1;
source
share