title: set background image url from Array
body: <p>I'm making BlackJack in JavaScript, Jquery, CSS and HTML. but I'm stuck with showing the card.
  I need to place them into a array like:</p>
  
  <pre><code>var imgArray = new Array("images/harten/harten2.png","images/harten/harten2");
  </code></pre>
  
  <p>now I want to change the background-image from a div I did it this way:</p>
  
  <pre><code>    $('#cardplace1').css("background-size", "contain");
  $('#cardplace1').css("background-image", "url(imgArray[0])");
  </code></pre>
  
  <p>for some weird reason it won't work, any tips?</p>
  
  <p>Thanks !</p>