I have a script with a javascript variable and a button, now everytime I press this button I would like the variable to raise by one, I have tried as you can see in the script below, but there are some issues, the number doesn't show and the number isn't raised by one every time the button is clicked, what is wrong?
javascript:
var nativeNR = 1;
function addOne() {
nativeNR = nativeNR + 1;
}
html:
<form id="form">
<input style="width: 500px;" type="add" id="plusButton" onclick="addOne();" />
</form>
current amount <span id="nativeNR"></span>