Line 10: |
Line 10: |
| function myFunction() { | | function myFunction() { |
| if (textinput != null) | | if (textinput != null) |
− | { | + | { |
− | var bladelength = document.getElementById("mw-bllength"); | + | var nBlLength = Number(document.getElementById("mw-bllength").value); |
− | var nBlLength = Number(bladelength.value);
| + | nBlLength = nBlLength + 1; |
− | nBlLength = nBlLength + 1; | |
− | bladelength.value = nBlLength ;
| |
| | | |
| + | document.getElementById("mw-bllength").value = nBlLength ; |
| } | | } |
| }; | | }; |