Skip to content
Advertisement

How do I get total addition of three group?

Here I three groups with range slider and input. I want to apply two things.

  1. Multiplication of range slider and the input.
  2. And at the end Addition of all multiplication.
    I have a different ID for all input types.

JavaScript
JavaScript

I know the code is wrong.

Advertisement

Answer

You can give common class to your amt input as well then use index value of each loop to get value of amt inputs and add total to your addition input.

Demo Code :

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement