title: Why am I not getting a response from serialize()?
body: <p>I'm very new to jQuery. I've been trying to use the .serialize method in jQuery, but I can not seem to garner a response. I've checked console on Microsoft Edge, Internet Explorer, and Chrome but there's no indication of anything happening past connecting to the latest library (3.4.1). My HTML and JavaScript code are below:</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;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="utf-8"/&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;script language="JavaScript" type="text/javascirpt" src="https://code.jquery.com/jquery-3.4.1.js"&gt;
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form name="ourform" id="ourform" action=''&gt;
  &lt;select name="salute"&gt;
      &lt;option&gt;Mr.&lt;/option&gt;
      &lt;option&gt;Mrs.&lt;/option&gt;
  &lt;/select&gt;
  &lt;br&gt;
  First Name: &lt;input type="text" name="firstname"/&gt;
  Last Name: &lt;input type="text" name="lastname"/&gt;
  &lt;br&gt;
  &lt;select name="region" multiple="multiple"&gt;
      &lt;option&gt;North&lt;/option&gt;
      &lt;option&gt;South&lt;/option&gt;
      &lt;option&gt;East&lt;/option&gt;
      &lt;option&gt;West&lt;/option&gt;
  &lt;/select&gt;
  &lt;br&gt;
  &lt;textarea rows="6" cols="20" name="comment"&gt;
  &lt;/textarea&gt;
  &lt;input type="submit" name="g" value="submit" id="g"/&gt;
  &lt;/form&gt;
  &lt;div class="results"&gt;Your Results&lt;/div&gt;
  
  &lt;script language="JavaScript" type="text/javascript" src="https://code.jquery.com/jquery-3.4.1.js"&gt;
  $(document).ready(function(){
      $('#ourform').submit(function(event){
          event.preventDefault();
          var myform = $('#ourform').serialize();
          alert(myform);
          return false;
      });
  });
  
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Any help you could provide would be greatly appreciated.</p>