how to submit the values in the form in javascript when there are 2 submit values?
<p>I have one form where there are 2 inputs those are submit type of inputs like this.</p>

<pre><code>&lt;form&gt;
    &lt;input type="text" name="payee" value=""&gt;
    &lt;input type="text" name="amount" value=""&gt;
    &lt;input type="text" name="date" value=""&gt;
    &lt;input type="submit" name="deposit" value="Distribute"&gt;
    &lt;input type="submit" name="distribute" value="Deposit"&gt;
&lt;/form&gt;
</code></pre>

<p>In jQuery like this:</p>

<pre><code>$("form submit").click(function() {
    // i wrote code.
}
</code></pre>

<p>If I click on the <code>deposit</code> button some action should occur. If I click on the <code>distribute</code> button some other action should occur.</p>
