I need a small JS Script (without jquery) to add a function that will summing some amounts.
Please see the attached image for details.
When the user selects a checkbox the assigned input-field must be added to a summed amount.
I need this for a lot of forms so this must work with the ID-Tag so it's possible for me to change the input-field names as i need.
The Script must support different amount notations.
In Germany we wrote : 1.000,11
In US we wrote : 1,000.11
So in some country the decimal point is a comma.
I need the possibility to define this on page loading with a small param-value.
It must be also possible to add HTML-Values (not only input fields).
You need to make some small examples, where i can test the functions.