no message

master
강석 최 2023-02-21 12:04:06 +09:00
parent f97cdf7574
commit 51d9fee9da
2 changed files with 12 additions and 2 deletions

View File

@ -235,6 +235,16 @@ $(document).on('change', '#trNny', function (){
}
});
$(document).on('change', '#eTrNny', function (){
if($(this).val() === "NNY001"){
$("#eTrVisa").attr("disabled", "disabled");
$("#enaturalization").removeAttr("disabled");
}else{
$("#eTrVisa").removeAttr("disabled");
$("#enaturalization").attr("disabled", "disabled");
}
});
$(document).on('click', '#crrAddBtn', function (){
const trKey = (Number($('#tcInsertKey').val()));
$('#insertCareer').append(

View File

@ -62,9 +62,9 @@
</th:block>
</select>
</div>
<label for="naturalization" class="col-sm-1 col-form-label-sm text-center">귀화</label>
<label for="enaturalization" class="col-sm-1 col-form-label-sm text-center">귀화</label>
<div class="col-sm-2">
<select class="form-select" id="naturalization" name="naturalization" th:disabled="${trInfo.trNny ne 'NNY001'}">
<select class="form-select" id="enaturalization" name="naturalization" th:disabled="${trInfo.trNny ne 'NNY001'}">
<option value="">선택</option>
<option value="O" th:selected="${trInfo.naturalization eq 'O'}">O</option>
<option value="X" th:selected="${trInfo.naturalization eq 'X'}">X</option>