 <p>You're setting CSS properties incorrectly with jquery. You can read <a href="http://api.jquery.com/css/" rel="nofollow noreferrer">here</a> how to reference the names of the properties (camelcased, with no hyphen).</p> <pre><code>$("#element").css({"backgroundImage":"url(/images/image.jpg)",....etc}) </code></pre>