Quote:
<input type ="text" name="nfirstEntry">
nFirst= parseInt(form1.nFirstEntry.value);
Javascript is case-sensitive.
nfirstEntry
is not the same as
nFirstEntry
.
If you debug the code, or just look at the developer console when you click the button, you will see the error message:
form1.nFirstEntry is undefined
Either fix the
<input>
's
id
to match the name used in your Javascript, or fix the name in your Javascript to match the
id
, and your code will start working.