title: how to get response of form submit event in javascript/jquery?
body: <p>I want to get response of form's submit event in jquery or javascript ?</p>
  
  <p>I am firing form's submit event like that in jquery :-</p>
  
  <pre><code>$(form).submit();
  </code></pre>
  
  <p>actually for checking the response i am doing it like that :-</p>
  
  <pre><code>alert('resp=' + $(form).submit());
  </code></pre>
  
  <p>And below is the action method :-</p>
  
  <pre><code>public ActionResult SaveProduct(ProductViewModel model)
     {           
         if (ModelState.IsValid)
         {
             return Json(true);
         }
         else
         {
             return Json(false);
         }
  
     }
  </code></pre>
  
  <p>So its just returning true or false.
  But i getting below response in alert(where i trigger it) :-</p>
  
  <pre><code>[object object]
  </code></pre>
  
  <p>And i want to know that,how i can get the submit event response like that ?</p>