title: Responding to an HTML element to change background and text of a DIV using jQuery
body: <p>I have an element that returns a value of either <code>true</code> or <code>false</code> when I run <code>$('#myId').val()</code>. </p>
  
  <p>Once true or false is returned, I want to have a particular <code>div</code> change its background color to green for true or red for false.</p>
  
  <pre><code>if ($('#myId').val())
  {
     code should return a div with text and green background
  }
  else
  {
     code should return a div with text and red background
  }
  </code></pre>