In JavaScript, the className property gives the class name of an HTML element, but how to get the contents of the class.
In JavaScript, the className property gives the class name of an HTML element, but
Share
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.
first you need to get the cssRules array but since it is not cross platform you should use a code like this:
now cssRules is an array of selectors in your stylesheet you can go through it like this: