I have a checkbox that when checked should toggle checkboxes in a form below.
The function works perfectly on first iteration, however any time after that the checkboxes in the form are not checked.
I’ve included a simplified version of my code in the CodePen below
Solved, simply replace the attr function with prop and it will work as expected.
You must be logged in to reply to this topic.