How to set background image in CSS using jQuery?
Answers
Answered by
0
Answer: Use the jQuery CSS() Method
<title>jQuery Setting background-image CSS Property</title>
.box{
width: 500px;
height: 300px;
border: 5px solid #333;
<script>
$(document). ready(function(){
// Set background image of a div on click of the button.
Similar questions
Math,
7 months ago
Math,
7 months ago
Chemistry,
7 months ago
Computer Science,
1 year ago
Hindi,
1 year ago