키보드이벤트 keyup keydown keypress
keyup
: 키보드 입력이 끝났을때 사용하는 메서드
$("input[name=PhoneNum]").keyup(function () {
if ($("input[name=PhoneNum]").val() == "") {
$('#check_phoneNum').text(' *입력해주세요');
$('#check_phoneNum').css('color', 'red');
} else {
$('#check_phoneNum').css('color', 'white');
}
});
참조
https://dororongju.tistory.com/91
https://findfun.tistory.com/282