Avoid repeating the value entered in all table inputs built with foreach loop

0

Good day to all first of all a greeting to all

The situation is as follows:

1.- I load several check points of a checklist in the "Review points" model.

2.-Next I build a table creating a "form" for each created row that contains a checkbox and an input and a sumbit button.

The user needs to review the point and save the value in the DB. immediately retrieve the values of each one and put them in their corresponding revision point.

The problem:

When I enter, for example, 0.1 in the first input, submit and add that value to the other inputs (only in the view) or failing that, if the input is empty, the others are cleaned, and any value that you enter applies. everyone.

HOW TO ASSIGN YOUR RESPECTIVE VALUE OF THE REVISION POINT FROM THE MODEL TO EACH ITEM IN THE TABLE.

    
asked by Hector 04.10.2018 в 19:18
source

0 answers