Hello.
I made a pop-up screen like in the picture.
When you press the + - button on this screen, I want the price on the side and the total at the bottom to change.
I want the total and price to be updated when you press the edit button without closing the opened window.
How can I do that? Thank you.
<div class="modal" id="Modal1" >
<div class="modal-dialog" id="Modal1">
<div class="modal-content">
<div class="modal-body" >
<div>
<div class="w3-container">
<table class="w3-table-all" style="color: #1b8bb4 ">
<tr>
@foreach (var s in Model.SEPETs)
{
<tr>
<td>@s.STOKADI</td>
<td>
<button class="quantity-minus" onclick="azal(this)" style="">-</button>
<input type="text" class="quantity-input" name="MIKTAR" id="txtmiktar" value="@s.MIKTAR" style="" />
<button class="quantity-plus" type=button onclick="art(this)" style="">+</button>
<script type="text/javascript">
function azal(ele) {
if (ele.nextSibling.nextSibling.value > 1) {
ele.nextSibling.nextSibling.value = parseInt(ele.nextSibling.nextSibling.value) - 1;
}
}
function art(ele) {
if (ele.previousSibling.previousSibling.value > 0) {
ele.previousSibling.previousSibling.value = parseInt(ele.previousSibling.previousSibling.value) + 1;
}
}
</script>
</td>
<td>@((System.Data.SqlTypes.SqlDecimal?)s.TUTAR)₺</td>
<td>
<button class="btn btn-warning">Düzenle</button>
</td>
</tr>
}
</table>
</div>
<h6></h6>
@using (Html.BeginForm("SiparisGonder", "AnaMenu", FormMethod.Get))
{
<button type="submit" style="margin-left:15px" class="btn btn-warning"><i class="fa fa-trash" aria-hidden="true"></i> </button>
@*<input type="text" name="MASAID" value="@ViewBag.masaid" />*@
<input type="text" name="FIRMAKODU" value="@ViewBag.firma" hidden />
<input type="text" name="SIPARIS" value="1" hidden />
<button type="button" class="btn btn-danger" data-dismiss="modal">Kapat</button>
<button type="submit" style="width:320px" class="btn btn-primary">Sepeti Onayla</button>
<h6></h6>
if (ViewBag.masaid == 0)
{
<input type="text" name="MASAID" value="@ViewBag.masaid" />
}
else
{
<input type="text" name="MASAID" value="@ViewBag.masaid" hidden />
}
<input type="text" name="ADI" placeholder="Adınızı Soyadınızı Yazınız" style=" width:240% ; height:40px ; margin-left:15px" />
<input type="text" name="NOTU" placeholder="Sipariş Notunuz" style=" width:240% ; height:40px ; margin-left:15px" />
}
</div>
</div>
</div>
</div>
</div>