Changing background color on click

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…

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

Thanks for the help Sacheec!!