Home > front end >  Please help to see see! MVC shopping cart to select the computing price specified goods haven't
Please help to see see! MVC shopping cart to select the computing price specified goods haven't

Time:09-17

I'm doing a shopping cart, use the checkbox, select the goods, after pressing the button to calculate the selected part of the price, but how to button all have no reaction, think a day, please answer, as if js part take less than the amount of each commodity,

CodePudding user response:


After I useless el expression, in writing, or not,

CodePudding user response:


Define the I first: for (var I=0; . )
Checkbox value is wrong, the op and [I] don't ", ": the if (op [I] checked... )

CodePudding user response:

You look the array output choose

CodePudding user response:

refer to the second floor is not single, don't change name response:

Define the I first: for (var I=0; . )
Checkbox value is wrong, the op and [I] don't ", ": the if (op [I] checked... )

CodePudding user response:

Test is in everyone's eye

CodePudding user response:

refer to the second floor is not single, don't change name response:

Define the I first: for (var I=0; . )
Checkbox value is wrong, the op and [I] don't ", ": the if (op [I] checked... )
thank this did YanCha, because I just found out that actually getElementByName with wrong, should be getElementsByName!

CodePudding user response:

Has been solved! Thank you all! Value function in the wrong
  • Related