Sunday, December 18, 2011

Javascript - answer is NaN?

The value of any HTML element will always be a string. You will need to convert it to a number (integer or float). Try the parseInt(field.value) function.

No comments:

Post a Comment