I have the following SASS code
a.unfavorite{
width: 20px;
background-position: -71px -28px;
text-decoration: none !important;
&:before {
content: "un-favorite";
background: #000;
color: #fff;
}
}
In JQuery, I want to be able to access the :before
element so as to modify it.
I tried doing something like this $('.unfavorite:before')
but yields no results. Am I doing it wrong?