I am trying to change the background image of a div with Jquery and its not working
here is the html and jquery
<div class = "displayUser" id = "cover">
<script type="text/javascript">
$(document).ready(function () {
$('.displayUser').css("background-image", "url(../images/group_icon.png) no-repeat;");
});
</script>
</div>
here is my css
.displayUser{
height: 600px;
width: 100%;
background-repeat: no-repeat;
background-size: 100%;
}
Why isnt it working?