I have a list checkboxes of this kind:
<input type='checkbox' class='custom-control-input' name='student_data[]' value=" + json_data[key]['id'] + " id='checkbox" + json_data[key]['id'] + "' />
<label for='checkbox" + json_data[key]['id'] + "' class='custom-control-label'>" + json_data[key]['name'] + "</label>
with the Json string like so:
[{'id': 1, 'name': 'Dave'}, {'id': 2, 'name': 'Mallory'}, {'id': 3, 'name': 'David'}, {'id': 4, 'name': 'Ivan'}, {'id': 8, 'name': 'Daisy'}]
And my backend will constantly check the name of the student from another db and return the student's name through streaming HTTP response.
So, the question is how can I constantly update the checkbox check status when a name is received?
Thanks.