title: "How to 'Reload the only Partial View' part after submitting the form with HTML Helper in jquery?"
body: <p>I have a partial view on a View of MVC so after Submit the form that is submitting within jquery that you can see below in the code. I have to refresh the Partial view to show some changes that made in partial view after clicking on save button. What should I do in the section of script on click of save?</p>
  
  <pre><code>@using(Html.BeginForm(FormMethod.Post, new{id="form"}))
  {
  
      &lt;div&gt;
          @Html.Partial("_VehicleCard", Model)
      &lt;/div&gt;
      &lt;div&gt;
          &lt;div id="submitBtn" class="row&gt;
              @(Model.VehicleCards.Count&gt;0?"":"hidden")"&gt;
              &lt;div&gt;
                  &lt;button type="button" id="btnSubmit"&gt;Save&lt;/button&gt;
              &lt;/div&gt;
           &lt;/div&gt;
      &lt;/div&gt;
  }
  
  @section scripts{
  
      &lt;script&gt;
          $('#btnSubmit').click(function (event) {
              event.preventDefault();
              event.stopImmediatePropagation();
              $('#form').submit();
              //here i wants to refresh Patrial View.
          });
      &lt;/script&gt;
  }
  </code></pre>
  
  <p>Here is my Controller code:</p>
  
  <pre><code>public PartialViewResult GetVehicleForEndMileage(string date, int? Id)
  {
  
              try
              {
                  var model = new VehicleEndMilageVM();
                  DateTime selectedDate;
                  DateTime.TryParseExact(date, "dd/MM/yyyy", null, 
                  DateTimeStyles.None, out selectedDate);
                  model.SelectedDate = selectedDate.ToString("dd/MM/yyyy");
                  model.LocationId = Id ?? 0;
                  model.VehicleCards = 
                  vehicleDailyInspectionBLL.GetDailyInspectionDetail(selectedDate, Id).Select(x =&gt; new VehicleCard
                  {
                      VehicleNumber = x.VehicleNumber,
                      StartMilage = x.StartMilage,
                      Driver = x.Driver,
                      EndMilage = x.EndMilage,
                      VehicleId = x.VehicleId,
                      VehicleDailyInspectionId = x.VehicleDailyInspectionId,
                      IsEndMilageAdded = (x.EndMilage !=null &amp;&amp; x.EndMilage &gt; 0) ? true : false 
                  }).ToList();
  
                  return PartialView("_VehicleCard", model);
              }
              catch (Exception ex)
              {
                  throw;
              }
  
          }
  </code></pre>