<button type="submit" class="btn btn-primary" id="submit-button">Maak taken aan in th!nx</button>
<button type="submit" class="btn btn-secondary">Terug naar th!nx</button>
If the user wants to plan a project-line, he ticks the first checkbox (make-Task). If this checkbox is ticked, the second field (deadline) is required. If it's not ticked, it's not required (because we won't plan it).
1) How can I check if the deadline field is not empty, only if the first field is ticked
2) My validation ONLY looks at the first row, doesn't validated the others (I just set deadline to always be required when playing around and noticed this. How do I check the other rows ?
PS my 'play-around' validation file : <script src="validation.js"></script> looked like :