let dep;
$("#department option").each(function () {
var val = $(this).val();
var text = $(this).text();
dep += '<option value="' + $(this).val() + '">' + $(this).text() + '</option>';
})
let dep;
$("#department option").each(function () {
var val = $(this).val();
var text = $(this).text();
dep += '<option value="' + $(this).val() + '">' + $(this).text() + '</option>';
})