1

Add function that collapses the drop-down list if the lecture checkbox is checked

This commit is contained in:
XXNitram
2020-03-20 02:39:59 +01:00
parent 066d425d35
commit 5b106d7746

View File

@ -104,6 +104,13 @@
var fileName = $(this).val().split("\\").pop();
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
});
// Collapsing lectureParent if lecture is checked
$(document).ready(function () {
$('#lecture').change(function () {
$('#lectureParent').fadeToggle();
});
});
</script>
</main>
</body>