Help - Search - Members - Calendar
Full Version: Why does this not work - very stuck
HTMLHelp Forums > Programming > Client-side Scripting
Shona
Esentially it checks if the first numerical input or the second input is a number, if not alert if a good number then output it

---

if (((isNaN(first) || (isNaN(second)))
{
Alert("invalid Number entered")
}
else
{
answer=eval(txtanswer);
document.form1.textarea2.value=txtanswer+ "=" +answer;
}
Brian Chandler
QUOTE
if (((isNaN(first) || (isNaN(second)))


The brackets don't seem to match!

if (((isNaN(first) || (isNaN(second)))
if (((isNaN() || (isNaN()))
if (((isNaN || (isNaN))
if (((isNaN || ())
if ((()
if ((
!

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.