Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
JavaScript: Live update checkbox check status based on backend response

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!