title: Disable Ajax.BeginForm if user input does not match the specified conditions
body: <p><strong>Client side:</strong></p>
  
  <pre><code>@using (Ajax.BeginForm("AddClusion", clusionOptions))
  {
      @Html.TextArea("clusionValue", new { onkeyup = "SyncContents(); return false;" })
      &lt;input type="submit" value="Add" onclick="ValidateInput(); ClearDirtyFlag(['clusionValue']);" /&gt;
  }
  
  &lt;script&gt;
      function ValidateInput()
      {
          if (@Html.Raw(Json.Encode(Model.Name)) === "CheckII" &amp;&amp;
          $("#clusionType").val() !== "EcuMnemonic" &amp;&amp;
          $("#clusionValue").val().length &gt; 10)
          {
              //do not submit data to the server.
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Server side:</strong></p>
  
  <pre><code>[Transactional]
  public JsonResult AddClusion(Guid id, ClusionType clusionType, string clusionValue, bool isInclusion)
  {
      var product = NonDiagnosticRepository.Product(id);
  
      product.AddClusion(new ProductClusion { Type = clusionType, Value = clusionValue, IsInclusion = isInclusion, ProductId = id });
  
      return Json(new { success = true });
  }
  </code></pre>
  
  <p>Is it possible to <strong>not submit</strong> the data to server if the user input doesn't match the specified conditions? If it is, then how ?</p>