let's say that I have some
<TR style = "background-color : red ;">
and some
<TR>
(to be noted that the spaces next to the colon and to the semicolon are intentional, because the page I am dealing with is written in that way)
now, this:
$('.detailtable tr:not([style~="darkgray"])')
works perfectly. But here it says:
[name!="value"] cannot take advantage of the performance boost provided by the native DOM querySelectorAll() method. For better performance in modern browsers, use $("your-pure-css-selector").not('[name="value"]') instead
so I was wondering: is my expression the best one or something like:
$('.detailtable tr').not('[style~="darkgray"]') // this doesn't work!
is better performing? And what is the correct way of writing this last expression?
Thanks in advance