[Vuejs]-Vue.js – Problem with dynamically created checkboxes: checking one checks all and can't pass dynamic data in value

0👍

If

value="{{student:s['First Name'], status: absent}}" 

Is exactly what you hard coded on your iteration, the note that’s the reason why all your checkbox are checked on a click.

The values of the checkbox should be unique.

To pass dynamic values to ur input, you should bind them.
E.g

:value="object"
// Where object is a valid know JavaScript object

Binding let’s you pass dynamic value to your template.

Leave a comment