Answer the question
In order to leave comments, you need to log in
How to get the parameter from the array obtained from the selected checkboxes?
An array is created consisting of the data of the selected checkboxes, the data of one element includes: "title", "cost", "id".
you need to get cost from the resulting array, in order to further calculate the total cost of all selected elements,
please tell me how to get cost and throw it into a new array, consisting only of cost values.
the source code is here, but I don’t know how to run vue in this editor
https://jsfiddle.net/h6cdn9ys/1/
this is how the result looks like
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