From: Thomas 'PointedEars' Lahn on
Gregor Kofler wrote:

> Hans-Georg Michna meinte:
>> Gregor Kofler wrote:
>>> How about parseInt()? As Thomas said: It's in the FAQ.
>>
>> A prepended simple plus sign may also do.
>
> Plenty of plus signs then. Whatever the OP prefers - it's all in the FAQ.

Another way is to arrayify the relevant controls, use a mapping function to
get the Number value and/or Array.prototype.reduce() to compute the sum.
Requires a recent implementation or a user-defined method, of course, but
strikes me as being the most elegant solution, almost pythonic (isn't it
fascinating how programming languages become more similar as each year
passes?).


PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$8300dec7(a)news.demon.co.uk>