I have a input file selector and I want to know when the modal is closing if a file is not selected. I only know the change which only works when a file is selected or changes
<input type="file" id="selector">
$("#selector").on("change", function() {
//Changed
});