Thank you John.
Finally I’ve included the price in the label with a separator character and then, get them with javascript and put into the checkbox value attribute.
Ok, so I have a problem.
I’m working on a front-end form that calculates prices, I have a lot of items with a price and everyone has a checkbox for add/remove.
For example:
100 : Lights
100 : Brakes
300 : Engine
Where the number is the price and the name is the product. Then if you have selected Lights and Engine I calculate via javascript the total of 400.
My problem, as you see, is that if I have two products with the same price only one will be stored.
You know any way to store the price and the product name? like saving the price into another attribute apart from the value?
Thank you.