Check specific checkbox on checkbox click

Check specific checkbox on checkbox click

I have a form that has some questions (email, phone number, etc) and then the user can select for each question through checkboxes if:

  1. - that question should be included for the registration types that exist for a conference
  2. - and also if that field should be mandatory or not for each registration type. 

So for example, for the question "Whats your phone number?",  if the checkbox "mandatory for the registration type General" is checked the "Include for registration type General" for that same question should be automatically checked.

But it's not working. Do you know where is the issue?


Working example: https://jsfiddle.net/qy3v9j3m/2/