The Pseudo classes in Cascading Style Sheets (CSS) refers to the state of an element. Some of the element states among many that are useful for web designers or developers includes
:visited because in a designing phase, by altering these element states, one can focus on small details.
One way to get around this is by creating a class, applying the Pseudo class to the class created and manipulate the newly created class.
Let us take this piece of CSS code for example. If we try and use jQuery to manipulate the pseudo-class
:hover, we will not be able to.
Now by creating a class, we will be able to alter the state of our element.
Using jQuery, we can simply toggle or add the class to our element accordingly.