How can I act to sum up the values of the inputs of the same class and that the number of inputs does not have a standard, that is, it may be that time the class p1
has 5 instances, hour 1.
The structure would look something like this:
<input type='text' class='p1' />
<input type='text' class='p1' />
<input type='text' class='p1' />
<input type='text' class='p2' />
<input type='text' class='p2' />
<input type='text' class='p2' />
<input type='text' class='p3' />
<input type='text' class='p3' />
<input type='text' class='p3' />