2024/03/20 [웹접근성 수정] disabled → readonly로 수정

This commit is contained in:
subsub 2024-03-20 15:42:54 +09:00
parent 84229b07f6
commit a4ce227bab

View File

@ -29,13 +29,14 @@ c <%@ page contentType="text/html; charset=utf-8"%>
$("input[name=rpplRltnTy]").on("click",function(){
if($(this).is(":checked")){
$("input[name=rpplRltnTy]").prop("checked" , false);
$(this).closest("td").find("input[type=text]").prop("disabled", true);
$(this).closest("td").find("input[type=text]").prop("readonly", true);
$(this).closest("td").find("input[type=text]").val("");
$(this).prop("checked" , true);
$(this).next().next().prop("disabled", false);
$(this).next().next().prop("readonly", false);
$(this).next().next().removeClass("read-only");
}else{
$(this).next().next().val("");
$(this).next().next().prop("disabled", true);
$(this).next().next().prop("readonly", true);
}
});
@ -287,11 +288,11 @@ c <%@ page contentType="text/html; charset=utf-8"%>
<td>
<div class="check_wrap">
<span><input type="checkbox" value="01" id="employee" name="rpplRltnTy" <c:if test="${info.rpplRltnTy eq '01'}"> checked</c:if> ><label for="employee">직원</label>
<input type="text" name="rpplRltnCn" title="위임인과의 관계 직원 입력" size="15" ${info.rpplRltnTy eq '01' ? '' : 'disabled'} value="${info.rpplRltnTy eq '01' ? info.rpplRltnCn : ''}"></span>
<input type="text" name="rpplRltnCn" title="위임인과의 관계 직원 입력" size="15" ${info.rpplRltnTy eq '01' ? '' : 'readonly'} value="${info.rpplRltnTy eq '01' ? info.rpplRltnCn : ''}"></span>
<span><input type="checkbox" value="02" id="family" name="rpplRltnTy" <c:if test="${info.rpplRltnTy eq '02'}"> checked</c:if> ><label for="family">가족</label>
<input type="text" name="rpplRltnCn" title="위임인과의 관계 가족 입력" size="15" ${info.rpplRltnTy eq '02' ? '' : 'disabled'} value="${info.rpplRltnTy eq '02' ? info.rpplRltnCn : ''}"></span>
<input type="text" name="rpplRltnCn" title="위임인과의 관계 가족 입력" size="15" ${info.rpplRltnTy eq '02' ? '' : 'readonly'} value="${info.rpplRltnTy eq '02' ? info.rpplRltnCn : ''}"></span>
<span><input type="checkbox" value="03" id="etc" name="rpplRltnTy" <c:if test="${info.rpplRltnTy eq '03'}"> checked</c:if>><label for="etc">기타</label>
<input type="text" name="rpplRltnCn" title="위임인과의 관계 기타 입력" size="15" ${info.rpplRltnTy eq '03' ? '' : 'disabled'} value="${info.rpplRltnTy eq '03' ? info.rpplRltnCn : ''}"></span>
<input type="text" name="rpplRltnCn" title="위임인과의 관계 기타 입력" size="15" ${info.rpplRltnTy eq '03' ? '' : 'readonly'} value="${info.rpplRltnTy eq '03' ? info.rpplRltnCn : ''}"></span>
</div>
</td>
</tr>