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 7046905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:42:23+00:00 2026-05-28T02:42:23+00:00

Is there a way to identify the selector is by the spesific background-image. Is

  • 0

Is there a way to identify the selector is by the spesific background-image. Is there a way to do this?

<ul style="background-image:url(/test/test/shortcutsMenu-test.png);">

I know this is not the right way to do it, but I’m manipulating a website to a mobile version of the same site.

  • 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-28T02:42:24+00:00Added an answer on May 28, 2026 at 2:42 am

    You could use filter:

    $("ul").filter(function() {
        return $(this).css("background-image") === "url(/test/test/shortcutsMenu-test.png)"; 
    });
    

    This will allow you to select ul elements that have a background image defined elsewhere, not only inline. Here’s a working example.

    If you don’t care about that, and the background image will always be applied inline in a style attribute, you could use an “attribute contains” selector with the style attribute.

    Update (based on comments)

    To just search for part of the file name you can use normal JavaScript string methods like indexOf (since the jQuery css method returns a string):

    $("ul").filter(function() {
        return $(this).css("background-image").indexOf("findThisString") > -1; 
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to identify the modified image with PIL in python? My
I want to know is there any way to identify an html element by
Is there way to better identify design pattern in source codes, esp. if you
Is there any way to identify which SQL Agent job is running a stored
Is there a way to identify the current version of IIS / using NSIS
Is there a way to identify the timestamp when an object(table/view/stored proc...) was modified
In C, is there a way to identify the rvalues and lvalues ? Some
Is there any way to uniquely identify controls using Accessibility? Once control is identified
Is there a good way to identify (or at least approximate) the graphics program
Is there any way in SSIS to identify which particular task has failed? My

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.