Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Mel Smith" Newsgroups: comp.lang.javascript Subject: Re: JavaScript Case Project 3-1: The dreaded NaN error Date: Sun, 11 Nov 2012 10:08:26 -0700 Lines: 59 Message-ID: References: <055e7215-93ba-40a9-81f3-312ea0e4f5e2@googlegroups.com> X-Trace: individual.net FQ9ro3zRN65O552iBK/3ygHdyqEqBwJisXoE1Z5REHAvTxCleH8p/OpusEVWCqrYng Cancel-Lock: sha1:DBgs4kkO0JEolYWP1wHXKN7yYrc= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: csiph.com comp.lang.javascript:17168 where I'm going wrong? You must convert the text string input to a floating point number -- probably using the parseFloat() function. See below -Mel Smith (one neophyte to another) Untitled Document Purchase price (no dollar signs):

For the record, I've also tried changing "txtPurchasePrice.value" to "document.getElementById('txtPurchasePrice').value" and even "txtPurchasePrice.text", but none of what I'm doing appears to make any difference -- no matter which way I go, it still says NaN.