title: jQuery Change Background Color If
body: <p>I was wondering how I can change background color with selectors. This is my code:</p>
  
  
  
  <pre><code>&lt;div id="example"&gt;
      &lt;select id="worked"&gt;
          &lt;option id="green"&gt;Green&lt;/option&gt;
          &lt;option id="orange"&gt;orange&lt;/option&gt;
      &lt;/select&gt;
  &lt;/div&gt;
  &lt;script&gt;
  $(document).ready(function(){ 
  
      var n = $("select option:selected")
  
      if (n == "green") {
          $("body").css("background", "green");
      } 
      else {
          $("body").css("background", "orange");
      }
  
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>So If I select green, it wont show nor orange. Any ideas?</p>