title: JQuery hide div based on day
body: <p>Here's the updated code again I want the div for Friday, not to appear on Friday. I also want it not to appear after 5pm but I could not get passed day problem. Thank you for all you help.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  
  &lt;script type="text/javascript"&gt; 
  
    $(document).ready(function() {
      var rightNow = new Date(); 
      var day = rightNow.getUTCDay(); 
      if (day == 5) { 
        $('#friday').hide(); 
      } 
    });
  &lt;/script&gt;
  
  &lt;style type="text/css"&gt;
  
  div {
  border:solid black 1px;
  background-color:lightblue;
  color:darkblue;
  font-size:14pt;
  font-family:arial;
  width:550px;
  height:220px;
  overflow:auto;
  padding:5px;
  }
  &lt;/style&gt;
  
  
  &lt;/head&gt;
  &lt;body&gt;
  
  
  
  &lt;div id='friday'&gt;
  friday
  &lt;/div&gt;
  &lt;br&gt;
  &lt;div id='saturday'&gt;
  saturday
  &lt;/div&gt;
  &lt;br&gt;
  &lt;div id='sunday'&gt;
  sunday
  &lt;/div&gt;
  &lt;br&gt;
  
  
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>