EDIT: the following is pseudo code to represent real classes $('a:hover'); and $(a.subClass); that I want to reach by the means of 'this', being 'this' = <a
>.
e.g. $(this:hover)
, $(this.subClass)
Tough that's not a correct syntax, you might get the idea.
Let's say $(this);
refers to an <a>
element, and I would like to reach its :hover
pseudo-class.
how would you do that?
I have a DOM element ' that I can reach in jquery as $('a'); or $(this);
That element has pseudo-classes (e.g. :hover) and sub-classes (e.g. .customClass) that I want to reach.
p.s. i have updated this question to make it more clear, thanks.