Possible Duplicate:
When I press enter I get isNaN, but the value is a number
How to change the content of a variable to zero if isNaN
When I press return “$isNaN” shows up in the textbox. I brought this problem earlier but misstated it.
It’s homework that I need to correct. Everything validates. I keep trying but the “$isNaN” keeps showing up. I appreciate any suggestions. Here is the link. http://ciswebs.smc.edu/cis54/tyson_schweidel/homework2.htm
You have your curly braces in the wrong place… You only check to see if the tax isNaN if the price isNaN…
The second test should not be dependent on the first… in other words even if the first test passes, you still need to run the second one (that isn’t the case with your current attempt)
should be:
Martin