Dymanically checking an array of checkboxes

Hi everyone,

I am recording the output of checkboxes values in a single column in a database (ex: 2,4,6,9). I’m using a checkbox group to this effect, with the checkbox name ending with .
For editing purposes, I’d like those checkboxes whose ID matches one of the values recorded in the array to be dynamically checked. I haven’t found a tutorial for the same, would anyone have any guidance?

Many thanks.

Community Page
Last updated: