Hello! I really appreciate your help. I am currently facing the following issue:
<div id="thumb1">
<img class="img-responsive" id="prova" src="img/thumb-up-dark.png" alt="">
<div id="pinline">0</div>
<img class="img-responsive" src="img/thumb-down-dark.png" alt="">
</div>
I need to increase the value in "pinline" after each click until it reaches 10;
In order to achieve this, I tried the following code:
$("#prova").click(function(){
var value = parseInt(document.getElementById('pinline').value, 10);
value++;
document.getElementById('pinline').innerHTML = value;
});
But unfortunately, it keeps returning "Nan". Could you please provide some guidance on how to fix this? Your assistance is greatly appreciated!
Thank you so much for your time and support.