Sum two input values in javascript

Sum two input values in javascript

  
Hi,

I know this is a dumb question.... but i can't get it work... How do you sum two input values using javascript...

Here's my experiences:

On extended properties i've put a onchange event

alert(parseint(document.getelementbyid('" +A.Id + "').value) + parseint(document.getelementbyid('"+  B.Id +"').value ));"

i've tried without parseint didn't work either...

Thanks in advance
Cecília
Hi Cecília,

I'm guessing that what's wrong with your code is casing. Javascript is case sensitive so there's no method getelementbyid but getElementById.

Hope this helps you,

Cheers,
André
Thanks a lot... it was a problem of case...

Cecília

Glad I could help.


Cheers,
André