Does anyone know how to set the value to 0 if they don't enter a value? I get NaN if they miss a box but dont want to put a check form on as they dont have to fill out all the boxes.
07-12-2011, 06:43 AM
wbport
if (isNaN(blah))
blah=0;
07-12-2011, 06:53 AM
katybaby
thank you :-)
07-12-2011, 09:40 AM
Michael_G
javascript debugging
javascript can be very had to debug sometimes due to the lack of detailed error messages.
+ is the default string concatenation function, unless you specifically cast your vars as number types, + will treat them as if they are strings.