Validating fields before submitting with jQuery
<p>I have a ordinary button:</p>

<pre><code>&lt;button value="finish_with_send" class="finish_with_send"&gt;Send&lt;/button&gt;
</code></pre>

<p>I need to validate two fields before submission, so i have replaced this button with following:</p>

<pre><code>&lt;a href="javascrtip:void(0)" class="finish_with_send"&gt;Send&lt;/a&gt;
</code></pre>

<p>And the validation:</p>

<pre><code>$(".finish_with_send").click(function() {
if(!$("#feedback_string").val() || !$("#feedback_title_string").val()) {
        // Validation failed, do something  
    } else {
        // Validation suceeded, submit
    }
})
</code></pre>

<p>The problem is that i need to submit as done with the previous button where the value came along to recognize submission type:</p>

<pre><code>value="finish_with_send"
</code></pre>

<p>Is there a way that to do this again with jQuery?</p>
