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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:28:05+00:00 2026-05-31T17:28:05+00:00

I need to find an a -tag’s ID by its style. My element have

  • 0

I need to find an a-tag’s ID by its style.

My element have the class .sort.

The element’s style is programmatically added earlier in one of two get functions, and I have to find it in a third get function.

  • 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-31T17:28:06+00:00Added an answer on May 31, 2026 at 5:28 pm
    var result = $('a.sort[style="foo"]').attr('id');
    

    Or if you don’t use inline styles(which you should not…):

    var result = $('a.sort').filter(function(){
                                return $(this).css('foo') == valueYouAreSearching;
                            }).attr('id');
    

    Note that searching by a style sounds awkward!
    Just add the element a new class, and search for it by it’s new class name:

    var result = $('a.sort.newClass').attr('id');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to find a certain hash element where one of the keys is
I have two List's that contain a object of Tag like List i need
i have some text which I know and I need to find first tag
In my XML ,i need to find the element tag whether it exists or
I have the html page, and me need find some elements with tag a
I have a problem i need a jquery code to find which anchor tag-edit
I cannot find this tag lib, i need it because http://www.springframework.org/tags/form does not work.
I have a set of strings and I need to find all all of
I need to read an html file and find a certain paragraph tag, with
I need to find <p> tag inside a string. Then I want to store

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.