Pretty new to code. Having some trouble implementing some code to randomize the background color of part of my website to change based on an array. Found this code:
$(document).ready(function(){
var colors = ["#4ECDC4","#FF6B6B","#313638","#FFE66D"];
var rand = Math.floor(Math.random()*colors.length);
$(‘#u97’, ‘#u379’).css("background-color", colors[rand]);
});
The "#u97, #u379" are the divs that I want to change the background color of. I insert the code in the header with a "script" tag but nothing happens. There is also a master CSS file that the divs get the color from, could that be interfering with something?