I'm having trouble with the .attr() function in jQuery. It doesn't seem to be changing the background-color of the div with the id "outline" like I expected.
Here's an example of my code:
<div id="outline"></div>
And here is the CSS styling for the div:
#outline {
height: 300px;
width: 300px;
background-color: black;
}
This is the JavaScript (jQuery) code I wrote to change the background color to blue:
$("#outline").attr('background-color', 'blue');