javascript programmatically set ::hover code example Example: trigger hover event javascript $("#id").mouseover();