Skip to content
Snippets Groups Projects

Add a required check for exam lab percentage

2 files
+ 7
0
Compare changes
  • Side-by-side
  • Inline

Files

@@ -330,10 +330,12 @@
@@ -330,10 +330,12 @@
$('#inputExamLab').change(function() {
$('#inputExamLab').change(function() {
if ($('#inputExamLab').is(':checked')) {
if ($('#inputExamLab').is(':checked')) {
$('#percentageExamLab').prop('disabled', false)
$('#percentageExamLab').prop('disabled', false)
 
.attr('required', true);
$('#inputTimeIntervals').prop('checked', true);
$('#inputTimeIntervals').prop('checked', true);
toggleTimeIntervals();
toggleTimeIntervals();
} else {
} else {
$('#percentageExamLab').prop('disabled', true)
$('#percentageExamLab').prop('disabled', true)
 
.removeAttr('required', false);
}
}
});
});
});
});
Loading