Is it possible to retrieve the :active
state CSS with jQuery? The reason why I ask this is because I'm trying to make dynamic code so I don't have to always tweak the jQuery when stylizing an element.
Edit
To elaborate, I don't want to .addClass()
or .removeClass()
because the class might not be the same for every element being affected by my jQuery code.
Edit 2
Let me further explain what I'm trying to do.
I'm trying to create a plugin for my own personal use, and instead of having to tweak the code every time I have a new element that will be affected by the plugin, I want it to grab what's already in the CSS so I won't have to lose time. What I'm trying to do is create a button with an :active
state, and when the user clicks the button, it will "freeze" at that state (my thoughts are to grab the CSS from that state and put them in the .css()
command). Now, the reason why I don't want to .addClass()
or removeClass()
because the :active
state is going to differ from one button to another.