Maybe a dumb question but i am trying to grab a number that is in a textbox and add 1 to it by pressing a button.
Here is the html
<input type="text" id="txt_invoer" value="1">
<button onclick="countUp()">+</button>
<button onclick="countDown()">-</button>
Here is the javascript
<script>
function countUp() {
var i = parseInt(document.getElementById('txt_invoer').value);
var iResult = i++;
document.getElementById('txt_invoer').innerHTML =
iResult.toString();
}
</script>
I hope im not being too dumb... Thanks in advance