Calling a jQuery function with parameters
<p>I have a btn </p>

<pre><code>&lt;a href="#" id="submitBtn" class="btnGray"&gt;Upload Docs&lt;/a&gt;
</code></pre>

<p>and a jquery code to submit the form.</p>

<pre><code>$("#docSaveBtn").click(function(){
  $("#docForm").submit();                           
});
</code></pre>

<p>I have multiple forms on the same page and I want to send the form id to submit which will submit the desired form when click of button with class 'btnGray'.</p>

<p>Your help is highly appreciated.</p>
