title: jQuery .hide() method not hiding div
body: <p>I tried looking around on this site but none of the previous answers have worked in helping with this. I have a div that holds a header and form. </p>
  
  <p>Basically I want once the form is submitted to hide everything that's in the div, so I've been trying to hide the div. But unfortunately nothing I do is getting this work. Here is my code: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script&gt;
    $(document).ready(function(){
      $("#shirtForm").submit(function(e){
        $("#question").hide();
      });
    });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div id="question"&gt;
        &lt;h3&gt;What colour shirt was Eamon wearing today?&lt;/h3&gt;
        &lt;form id="shirtForm" onsubmit="shirtValidator()"&gt;
          &lt;input type="radio" name="shirtColour" id="redShirt"&gt; Red &lt;br&gt;
          &lt;input type="radio" name="shirtColour" id="blueShirt"&gt; Blue &lt;br&gt;
          &lt;input type="radio" name="shirtColour" id="yellowShirt"&gt; Yellow &lt;br&gt;
          &lt;input type="radio" name="shirtColour" id="noShirt"&gt; He isn't wearing a shirt &lt;br&gt;
          &lt;input type="submit" value="Enter" onclick="shirtValidator()"&gt;
        &lt;/form&gt;
    &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Thanks in advance for any help at all.</p>