jQuery를 사용하여 입력이 비어 있는지 확인하십시오. 모든 필드를 채우려는 양식이 있습니다. 필드를 클릭 한 다음 채워지지 않으면 빨간색 배경을 표시하고 싶습니다. 내 코드는 다음과 같습니다. $('#apply-form input').blur(function () { if ($('input:text').is(":empty")) { $(this).parents('p').addClass('warning'); } }); 채워지는 필드와 상관없이 경고 클래스를 적용합니다. 내가 도대체 뭘 잘못하고있는 겁니까? $('#apply-form input').blur(function() { if( !$(this).val() ) { $(this).parents('p').addClass('warning'); } })..