How to force to work all conditions checkboxes in the calculator?

Hi all, learn JS . So the question on the calculator, why do the rules checkboxes not working? (the point is that price is only for the canvas, and depending on the type and color changing price ). How to pass the values with the array count in the total price? How can all the conditions of checkbook to reduce, the array did not understand how to do, thank you!
https://jsfiddle.net/vL08mh25/28/
July 9th 19 at 10:39
July 9th 19 at 10:41
Solution
0001 is the 1st switch = 2^0*1=1
0010 - this is the 2nd switch = 2^0*0+2^1*1=0+2=2
0100 - this is the 3rd switch = 2^0*0+2^1*0+2^2*1=0+0+4=4
1000 is the 4th ) = 2^0*0+2^1*0+2^2*0+2^3*1=0+0+0+8=8
1100 is and 3rd and 4th together ))) = 2^0*0+2^1*0+2^2*1+2^3*1=0+0+4+8=12
When you change .on('change') set or remove the desired bit of the common set of switches (common state variable switches) and on the basis of its values on or off switching feature of the other.
It's not very clear as it is in the code is where you can read examples about it? - Jan.Kutch commented on July 9th 19 at 10:44
: no examples here, and examples - I don't know. - Kyleigh_Hills commented on July 9th 19 at 10:47
: the link does not work - Jan.Kutch commented on July 9th 19 at 10:50
: here is my answer above, not the link there)) - Kyleigh_Hills commented on July 9th 19 at 10:53
: clear)) - Jan.Kutch commented on July 9th 19 at 10:56
July 9th 19 at 10:43
Probably because to consider the cost necessary once the variables asked.

price = (area * ( +polotno + +complect + +ustanovka)) * Col; //consider the price

transfer to
result.html(price);
Partially helped https://jsfiddle.net/vL08mh25/29/ but only the first checkbox select the canvas, the other not, and how to get the number to work when clicking on plus and minus? - Jan.Kutch commented on July 9th 19 at 10:46

Find more questions by tags JavaScript