title: Modal Popup Jquery Validation with MVC
body: <p>I am loading a Modal popup form using PartialView</p>
  
  <p>The code</p>
  
  <pre><code> $("#modalContainer").load('@Url.Action("NewRefill","Car",new {car=@Model.Id})');
  
                          $.validator.unobtrusive.parse($("#modalContainer form"));
  
                          $("#addNewEntryModal").modal('show');
  </code></pre>
  
  <p>in my Controller I have</p>
  
  <pre><code>[HttpPost]
          public ActionResult NewRefill(Car car,int car)
          {
              if (ModelState.IsValid)
              {
  
  
              }
              return Json(new { Success = false });
  
          }
  </code></pre>
  
  <p>This is a Modal popup. Every time You hit submit, it automatically forwards you to a new page. What I would like it to do would be to Keep the Modal open and show the Errors that happen. I have tried binding to the Submit event and stopping it to no avail. The validations do work since I see the Red borders but I get forwarded and see the Success=false</p>