Ca-Phun Ung wrote: > OK so I was right - you do have a double equal sign in your code! Change: > $(this).css(background-color) == p_color; > > to > > $(this).css(background-color) = p_color; > Actually, there shouldn't be an equal sign in the first place because the css() acts as both a getter and setter method - sorry I should have noticed this earlier :(
Try: $(this).css('background-color', p_color);