How can I increase or decrease the amount of products received by id without refreshing the page in ASP.Net MVC?
@foreach (var ch in Model.STOKLAR1_Results)
{
<div class="item">
<img src="@ch.RESIMYOL" style="width: 100%; height: 210px">
<P style="background-color: red; color: #FFF; font-size: 18px; width: 100%;">@ch.STOKADI</P>
<h6 style="color: green;">@ch.FIYAT</h6>
<h6 style="color: red;">
@ch.ACIKLAMA
</h6>
<input type="text" name="STOKID" id="txtstok" value="@ch.ID" />
<input type="text" name="MASAID" id="txtmasa" value="@ViewBag.masaid" hidden />
<input type="text" name="FIRMAKODU" id="txtfirma" value="@ViewBag.firma" hidden />
<input type="number" name="MIKTAR" id="txtmiktar" value="1" style="width:55px" />
<button type="button" class="btn btn-success" id="spt">add</button>
<button class="quantity-minus" onclick="azalt()"><i class="fa fa-minus"></i></button>
<input class="quantity-input" id="sonuc" type="text" value="1" />
<button class="quantity-plus" type=button onclick="arttir()"><i class="fa fa-plus"></i></button>
<script>
function arttir() {
var sonuc = document.getElementById("sonuc");
sonuc.value = Number(sonuc.value) + 1;
}
function azalt() {
var sonuc = document.getElementById("sonuc");
sonuc.value = Number(sonuc.value) - 1;
}
</script>
</div>
}