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 | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
- 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; }

26th Oct 2017, 10:03 AM
Aryan
1 Réponse
+ 1
You only need to get variable por counter and of course increase by 1
26th Oct 2017, 12:28 PM
Daniel
Daniel - avatar