title: Need Overlay to open over Div using jQuery
body: <p>I would like to be able to click a link within a div to generate an overlay that is situated over that very same div using jQuery. Saw some similar questions but still found myself lost. Wanted to do this without jQuery UI.</p>
  
  <p>Here is a basic code example (minus jquery needed to make it actually work):</p>
  
  <pre><code>&lt;style&gt;
  div {padding:5px;}
  #box {width:200px;height:200px; border:1px solid;}
  #box-overlay {width:200px;height:200px; border:1px solid #ff0000; background-color:#CCCCCC;}
  &lt;/style&gt;
  
  &lt;div class="box"&gt;
    &lt;p&gt;Content that appears when page loads.&lt;/p&gt;
    &lt;a href="#" id="new-content"&gt;Opens Overlay&lt;/a&gt;
  &lt;/div&gt;
  
  
  &lt;br /&gt;&lt;br /&gt;
  
  &lt;div class="box-overlay"&gt;
   &lt;p&gt;Overlay that appears on click. Should be hidden onload.&lt;/p&gt;
   &lt;button&gt;Submit&lt;/button&gt;&amp;nbsp;&lt;button&gt;Close Overlay&lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks in advance! Upvote if this helped you!</p>