Get rid of the '+' before 'custname' in the confirm() argument. That '+' is causing JavaScript to expect 'custname' to be a number, or at least something that can automatically be converted into a number. When 'custname' turns out to not be a number, the result is a NaN.
No comments:
Post a Comment