This is the css code:
# skin.css
.my_class {
attr1: value1;
attr2: value2;
}
I want to retrieve this properties, but $(".my_class") doesn’t work becase I have no element with class my_class in my DOM. Is there anyway of achieve this?
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.
You could create a hidden DOM element, and append it to the body, then delete it:
You’d have to do something a bit differently if you cared about the
displayproperty, e.g. useopacityorvisibilityorposition: absolute; top: -100000px;.