title: Uncaught TypeError: Property 'submit' of object #<HTMLFormElement> is not a function
body: <p>The type is set as 'submit' but it is still not working. I'm using  <code>console.log</code> but that doesn't display anything. I'd like the console log to display a number (two added together via ajax)</p>
  
  <p>How can I solve this?</p>
  
  <p><strong>Jquery code:</strong></p>
  
  <pre><code>jQuery(document).ready( function($) {
  (function($) {
  $(document).ready(function(){
    $('#formsubmit').submit(function(){
    $.post(
    PT_Ajax.ajaxurl,
          {
         action : 'ajax-inputtitleSubmit',
         noofwelds : $('input[name=numberofwelds]').val(),
         noofconwelds : $('input[name=numberofconwelds]').val(),
         nextNonce : PT_Ajax.nextNonce
          },
    function( response ) {
       console.log( response );
          }
          );
        return false;
  }); 
  
  });
  })(jQuery);
  }); 
  </code></pre>
  
  <p><strong>Form</strong></p>
  
  <pre><code>&lt;form action="" method="post" type="submit" name="formsubmit" id="formsubmit"   &gt;
  &lt;h1&gt; Process &lt;/h1&gt;
  &lt;p&gt; operation type always robot &lt;/p&gt;
  &lt;br&gt; &lt;br&gt;
  Number of welds: &lt;input type="number" name="numberofwelds" id="numberofwelds"  &gt;
  &lt;br&gt; &lt;br&gt;
  Number of construction welds: &lt;input type="number" name="numberofconwelds" id="numberofconwelds"  &gt;
  &lt;br&gt; &lt;br&gt;
  Total one: &lt;input type="text" name="totalone" id="totalone" disabled&gt;
  &lt;div id="totalfail1"&gt;&lt;/div&gt;
  &lt;br&gt; &lt;br&gt; 
  Total two: &lt;input type="text" name="totaltwo" id="totaltwo" disabled&gt;
  &lt;div id="totalfail2"&gt;&lt;/div&gt;
  &lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt;
  Total three: &lt;input type="text" name="totalthree" id="totalthree" disabled&gt;
  &lt;div id="totalfail3"&gt;&lt;/div&gt;
  &lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;br&gt;
  &lt;input type="submit"  value="Calculate" id="formsubmit" name="submit" class="ajax-link" &gt;
  &lt;div id="result"&gt; &lt;/div&gt;
  &lt;/form&gt; 
  </code></pre>