Answer the question
In order to leave comments, you need to log in
How to get dataset from several checkboxes and display their sum?
There are 7 checkboxes. Each has its own data-price and data-color. I need to implement this in pure js.
1. At least 2 checkboxes must be selected.
2. You need to get all the dataset from the selected checkboxes, add them up and display the result. You need to get the amount of data-price and next to the amount of data-color.
Broke all the brains but did not come up with anything.
Ideally, do it all in ES6 classes.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question