I have multiple text fields that is disabled by default and I have one checkbox above them. I want that when you check this checkbox it will enable all text fields.
**Checkbox** not checked **Checkbox** checked
**input field** disabled **input field** enabled
**input field** disabled **input field** enabled
**input field** disabled **input field** enabled
**input field** disabled **input field** enabled
**input field** disabled **input field** enabled
etc....
It need to fit this html structure:
<div class="large-4 columns">
<label for="checkbox"><input type="checkbox" id="checkbox">co-applicant</label>
<div class="large-12 columns">
<input type="text" id="inputbox" required pattern="[a-zA-Z]+" placeholder="First name" disabled="disabled">
</div>
<div class="large-12 columns">
<input type="text" id="inputbox" required pattern="[a-zA-Z]+" placeholder="Last name" disabled="disabled">
</div>
<div class="large-12 columns">
<input type="email" id="inputbox" required placeholder="Email" disabled="disabled">
</div>
</div>
I have looked up several examples but didn't get any of them to work. Also, the jquery code - where should I put it for it to work the best?
Thanks for the help!