- 1
Guys, how to increases quantity(eg. If i click one goods in 4 time then quantity also show me 4) and how to get total in jquery
function cal() { var prodname= sal_pro.prod_id; var sellprice= sal_pro.s_price; var quant=docyment.getElementById(prodname).value; console.log("quantity after change",quant.value); console.log("prod name",prodname); document.getElementById("total"+prodname).innerHTML= quant; }
1 ответ
+ 1
You only need to get variable por counter and of course increase by 1