There are several checkbox input types.
<input type="checkbox" id="someide" name="chb[0]" data-target="somedata" class="hidden check-com" disabled> ................................................................... <input type="checkbox" id="someide" name="chb[5]" data-target="somedata" class="hidden check-com" disabled> There is a separate js , where the behavior logic is processed, which through ajax communicates with php .
I can not figure out how to correctly write the value of checkboxes in a session, so that later through ajax pull it out in JS .
I will clarify that there are no submit buttons