hi,this is my first time on this forum and i’m new with javascript.I have problem with this: when i write 2+3 i get 23 instead 5.when i using *,/ or – everything working fine.only problem is with +.
@steelersfan88Oct 10.2004 — #[i]Originally posted by Fang [/i]
[B]The first alert shows numeric addition, the second string addition[/B][/QUOTE] (also called addition, and concatenation, respectively, for the record of Struxo)
@steelersfan88Oct 10.2004 — #sciguyryan ... eval isn't needed here, and since it takes a lot of memory t do, you'd rather avoid it. You can convert to numbers by the [font=monospace]Number([i]string[/i])[/font] function.
You best option is to define the agor, afor, bgor, and bfor as:var afor = new Number([i]f.afor.value[/i]); var agor = new Number([i]f.agor.value[/i]); var bfor = new Number([i]f.bfor.value[/i]); var bgor = new Number([i]f.bgor.value[/i]);(The italicized probably need changing ...
@steelersfan88Oct 10.2004 — #[i]Originally posted by sciguyryan [/i]
[B]Thanks and yup... I always thought that feature was reserved for Admins and Mods but I must be thinking of another forum system[/B][/QUOTE] I'm surprised how many people don't know about it. I was inspired by an antagonist who never appeared online.
... Numerous people don't know about the online list or forums group list, either