I am new to the forum, I have several days looking for the solution to my problem but I can not find it, the following happens:
I have a mysql table with the following records: "id, product, quantity, price", each record is dynamically displayed in an html table with a respective checkbox.
The checkboxes when I mark them add the value of each record with javascript (price) and the result of the sum (the selected checkboxes) shows them in an input: text called total.
My problem is that I need to make a checkbox of "Mark - unmark all", that when I press it I select all the checkboxes of the dynamic table and in turn I do the sum of the values of all the selected checkboxes.
I hope the above explanation is understandable, thank you very much in advance.