Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6237271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:59:52+00:00 2026-05-24T10:59:52+00:00

How can i express the following in jquery? Apply a yellow background to every

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:59:52+00:00Added an answer on May 24, 2026 at 10:59 am

    You can combine the :not() and :has() selectors:

    $("#SubscribersManageList td:contains('$'):not(:has(img[src='images/plus.gif']))")
        .css("background", "yellow");
    

    You can test it in this fiddle.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can i express in xpath a) need select elements which contains specified keyword.
I'm having trouble accessing my IIS 7.5 express site in FireFox but i can
I have a model that looks like this (well not really but it has
I have the following problem that I need to express. There are persons, workplaces
I asked here: Does Node.js require inheritance? And I was told that I can
To express that a group can have multiple users, and a user can belong
How can we express the following code using query expression: var result = collection1
Let's say I have following ASP.NET Web Form engine code, how can I express
Can I deploy SQL Server Express with my desktop application just like builtin database?
Can I develop Silverlight applications in Visual Studio express? When I start up Visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.