How can i express the following in jquery?
Apply a yellow background to every td on a table that contains “$” but does NOT contain img src=”images/plus.gif”
I could do it just for the contain part using:
$("#SubscribersManageList tr:contains('$')").css("background", "yellow");
But its not what i want, what i want is to select those tr that CONTAIN “$” but DONT contain the image src=”images/plus.gif”, and then apply yellow background to those tr.
Anyone?
You can combine the :not() and :has() selectors:
You can test it in this fiddle.