Change background image with a toggle (jQuery)
<p>How do i turn this into a toggle button? So that when the button is clicked, it toggles the light and dark background.</p>

<pre><code>$(document).ready(function(){
   $("button").click(function(){
       $(".content1").css("background-image", "url(../images/light.png)");  
   });
});
</code></pre>

<p><strong>CSS</strong></p>

<pre><code>.content1 {
background-image: url('../images/dark.png');
}
</code></pre>

<p>Thanks</p>