How do you add pseudo classes to elements using jQuery?
In CSS, when you hover your mouse over an element, you can specify views for it using the :hover pseudo class: .element_class_name:hover { /* stuff here */ } How can you use jquery to add or "turn on" this pseudo class? Typically in jQuery if you want to add a class you would do: $(this).addClass("class_name"); I have tried "hover" but this literally adds a class named "hover" to the element. If anyone knows what to write, please let me know! Thanks! You can't force a certain pseudo-class to apply using jQuery. That's not how pseudo-classes (especially dynamic pseudo-classes) work, since they