Form is submitting even condition fails (MVC3)
<p>I am using Jquery and MVC to do form submission like this</p>

<pre><code>@using (Ajax.BeginForm("Orders", "Customers", new AjaxOptions() {
 InsertionMode = InsertionMode.Replace, UpdateTargetId =
 updatemessages" }, new { id = "formupdate" })) {
       &lt;input type="submit" class="t-button" id="btnupdate" value="Update Orders"/&gt;  
}

&lt;script type="text/javascript"&gt;
   $(document).ready(function () {
    $('#btnupdate').live("click", function () {
         return false;
    ); 
  });
 &lt;/script&gt;
</code></pre>

<p>I am doing Form POST HERE.</p>

<p><strong>I`M CHECKING FORM VALIDATIONS IN SUBMIT BUTTON fuction , if validation fails ,I dont want to do form POST , IF SUCCESS ,DO FORM POST</strong></p>

<pre><code>$('#btnupdate').live("click", function () {

  if(success) {

  // do form POST &lt;BR/&gt;
}

else
{
// dont do form POST &lt;BR/&gt;

}
</code></pre>

<h2> - <strong>Actually ,can I do like this</strong></h2>

<pre><code>$("form#theForm").submit(function(evt){

    $('#btnupdate').live("click", function () {

if(success) {

// do form POST 
}

else {

evt.preventDefault(); // dont do form POST 

}
  });
</code></pre>
