Attempting to Add together the value of a variety of check boxes based on the selection on the first two check boxes. The Select
is used to represent a POST for a page and is the multiplier for 100kms
and 200kms
and the other check boxes. which gets shown at a daily rate without multiplying and a total with multiplying. I have a feeling it is either a syntax error or function call error.
I've tried to create a different set of functions to serve it's own purpose and inevitable add/ multiply things together. I've tried to change where the functions calls another such as DisplayVals1
and Calculate1
. My Fiddle is here for viewing. https://jsfiddle.net/shiataz12/mjnqth3L/83/
$("#qr3").click(function() {
var n3 = $( "input[name='checkbox1']:checked" ).length;
if(n3) {
Calculate1();
}
else {
Calculate2();
}
});
Above snippet is what i tried to use to run the addition of extra check boxes to the total.
Aucun commentaire:
Enregistrer un commentaire