mercredi 10 mars 2021

Saving checkbox values from a table in typescript

I have a table with the following format: user checks the form

<ng-container *ngFor="let subtopic of subTopics">
                    <tr (click)="subtopic.expanded = !subtopic.expanded">
                        <td>   </td>
                        <td class="text-center" *ngFor="let item of review.items">
                            <input type="checkbox" id="_id" name="_id[]" value="<? echo $_id; ?>" >
                        </td>
                    </tr> 
</ng-container>

How do I save these checkbox values for the next page?




Aucun commentaire:

Enregistrer un commentaire