title: submit() function not working
body: <p>I have the following code for which submit() function just don't work. I know i am missing something very simple but i am unable to figure it out.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>    &lt;form id="form" method="post" action="/url/"&gt;
      &lt;input type="hidden" name="hidden" value="hidden"&gt;
      &lt;/form&gt;
      &lt;span id="diagnose"&gt;&lt;i class="fa fa-chevron-right"&gt;&lt;/i&gt;&lt;/span&gt;
      &lt;script type="text/javascript"&gt;
      $(document).diagnose();
      &lt;/script&gt;
  </code></pre>
  
  <p><strong>Jquery</strong></p>
  
  <pre><code>(function( $ ){
  $.fn.diagnose = function(){
  
      $("#diagnose").click(function(){
          //window.location.href = "/url"; //This works
      ('#form').submit(); // This doesn't
      });
  };
  }( jQuery ));
  </code></pre>