0
I don’t understand javascript and I don’t know how to search to make a button that when pressed zeroes my counter that is a global variable
<form id="btn" method="get">
<input type="submit" name="submit" value="zerar"onclick="submit();">
</form>
<script>
function ssubmit(){
document.getElementById("btn".submit());
}
</script>
then he calls another function that resets the variable "in" where I put to call the other function?
What variable? Could you provide a slightly more detailed code example?
– Luiz Felipe
hi, so the variable is even a normal integer - >int num = 3; , and it sits there at the top of the code.
– rafacand
i am working with Andy on a college project, and are 3 blocks the entries, html, and counter function + reset
– rafacand