I have the Html.BeginForm
@using (Html.BeginForm("AddMeals", "ClientReservations",new { overallCost= $('#mealsOverallCost').value }))
I read from following input text.
<div id="DivMealsOverallCost">
@Html.Label("Całkowity koszt", htmlAttributes: new { @class = "control-label col-md-2" })
<input type="text" id="mealsOverallCost" readonly="readonly" value="@ViewBag.OverallCost" />
</div>
Is there any way to get value from input filed and pass it into BeginForm. Presented by me way of reading.
overallCost= $('#mealsOverallCost').value
Is not proper.