title: Use ajax to call ActionResult with value from text box.
body: <p>The only field that the user updates is <strong>QuantityDelivered</strong>, then the user clicks the Accept Button to update the number entered in the textbox and the ShoeOrderItem via Ajax.</p>
  
  <pre><code>@for (int i = 0; i &lt; Model.ShoeOrderItemList.Count(); i++)
  {
  &lt;tr&gt;
      &lt;td class="text-center"&gt;
          @Html.HiddenFor(model =&gt; Model.ShoeOrderItemList[i].ShoeOrderItemId)
          @Html.DisplayFor(model =&gt; Model.ShoeOrderItemList[i].ShoeOrderItemId)
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          @Html.DisplayFor(model =&gt; Model.ShoeOrderItemList[i].LineItemTotal)
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          @Html.DisplayFor(model =&gt; Model.ShoeOrderItemList[i].ShoeSize.Size)
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          @Html.DisplayFor(model =&gt; Model.ShoeOrderItemList[i].Shoe.ManufacturingCost)
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          @Html.DisplayFor(model =&gt; Model.ShoeOrderItemList[i].Quantity)
      &lt;/td&gt;
      &lt;td class="text-center"&gt;
          @Html.DisplayFor(model =&gt; Model.ShoeOrderItemList[i].QuantityOutstanding)
      &lt;/td&gt;
      &lt;td&gt;
          @(Html.Bootstrap().TextBoxFor(m =&gt; m.QuantityDelivered)
            .Placeholder("Quantity Delivered ")
            .Prepend("#").Append(Html.Bootstrap()
            .Button().Text("Accept").Id("AcceptItem")))
      &lt;/td&gt;
  &lt;/tr&gt;
  }
  </code></pre>
  
  <p>Ajax </p>
  
  <pre><code>$("#AcceptItem").click(function() {
    var quatntity = @Html.Raw(Json.Encode(Model.QuantityDelivered))
    $.ajax({
       url: "ShoeOrder/CreateShoeDelivery",
       type: "GET",
       data: {
              shoeOrderItemId: shoeOrderItemId[i],
              quantityDelivered: quatntity,
              dataType: "html"
          }
      });
  });
  </code></pre>
  
  <p>I would just like to call the ActionResult with the value entered by the user when they click the button AcceptItem. </p>