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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Or if you don’t use inline styles(which you should not…):
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: