Adding/Removing Class on Hover

PHOTO EMBED

Tue Jun 23 2020 09:45:54 GMT+0000 (UTC)

Saved by @Amna #jquery

$('#elm').hover(
       function(){ $(this).addClass('hover') },
       function(){ $(this).removeClass('hover') }
)
content_copyCOPY

This will work in any browser on any element, to support styling changes on hover.

https://css-tricks.com/snippets/jquery/addingremoving-class-on-hover/