martinbshp martinbshp - 7 months ago 31
jQuery Question

How do I add aditional class on hover in jQuery

I have several circles with a css class of rating-circle and I want to add an additional class. Here is the code I'm using.

$(function () {

//change class on hover

$('.rating-circle').hover( function() {

What did I miss?
Thank you.


you forgot the dot


Small advice: Use some developer tool when you are working in frontEnd, and those minor mistakes are really easy to fix :)