In .cshtml page,
<section>
<label class="select">
@if (itm.OutOfStock)
{
<select class="form-control" id="itm_SelectedQty" name="itm.SelectedQty" disabled="disabled">
<option value=""></option>
</select>
}
else
{
@Html.DropDownListFor(m => itm.SelectedQty, itm.QtyChoices, "", new { @class = "form-control" })
}
@Html.HiddenFor(m => itm.MenuItemId, new { @class = "itm_MenuItemId" })
@Html.HiddenFor(m => itm.ItemAmount, new { @class = "itm_ItemAmount" })
<i></i>
</label>
</section>
And the following jQuery code is getting called, on change:
$('.form-control').change(function () {
var selectedQty = this.value;
});
How can I call this same on change function, when someone clicks on browser's back button?