title: JS/jQuery Change CSS with if/else statement
body: <p>I'm trying to change the background image of a div using an if/else statement after a user clicks a part of the page. With the code below, the div will collapse as intended, however the accompanying background image does not change. </p>
  
  <pre><code>$(document).ready(function() {
      $(".titles-us").click(function() {
          $(".map-us").toggle();
          $(".map-tri").hide();
          $(".map-can").hide();
          $(".map-eur").hide();
          if ($(".us-icon").css('background-image') === 'url("public/images/collapse-lg.png")') {
              $(".us-icon").css({
                  'background-image' : 'url("public/images/expand-lg.png")'
              });
          }
          else {} 
      });
  });
  </code></pre>