Hey I have this line of code
<input id="product_qty" type="text" name="product_qty" value="1" style="color: black">
and what I do is that when I press a button the value of this input change and will add 1, like 1, then 2, etc.
But what I wanted to know is how I get the last value of this input, for example if I pressed five times the button how do I get the number 5 in javascript or using jquery.
I was looking for some information but I couldn't find anything.
Thanks.