JQuery validate dynamically added input fields against other dynamically added input fields

I have multiple pairs of input fields for start and end dates: @foreach (var exam in exams){ <input type="date" data-val="true" required id="StartDate" value=&…