Changing background color on click

Changing background color on click
0

#1

Hi, I’m trying to change the background color randomly on a click to “New Quote” button. Doesn’t seem to work. There also seems to be a syntax error on line 15 but I can’t figure out what it is…


#2

Hi Nicolas,

In order to change the background color with $("#").animate({},X) you have to import jqueryUI to your javascript.

Please refer below;

https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js


#3

Thanks for the help Sacheec!!