Menu
I am new to javascript and seem to have stumped myself on this one.
I am tying to calculate a total from 6 form fields named life1, life2 …
basically the expression would be something like:
life1 + life2 + life3 + life4 + life5 – life6 = Total
I have been working on this for sometime now as a side project and can’t seem to figure this out.
I know that i need to convert the string using parseInt or similar function but I am honestly not sure how to get that working either.
any help would be greatly appreciated.
Thanks in advance.
Josh