jQuery의 blur()
기능이 작동하지 않습니다. 입력 값이 저장 되더라도 표시되지 않습니다. 아무도 그 이유를 말할 수 있습니까? 나도 행운과 함께 on('blur', function(){});
를 시험해 보았다.jQuery 흐림 효과 없음
$('form').each(function() {
$(this).find(':input')
.not('input[type=submit], input[type=hidden]')
.each(function() {
if (!($.trim($(this).val()))) {
if ($(this).attr('data-placeholder')) {
putPlaceholder(this);
}
}
$(this).blur(function() {
if (!($.trim($(this).val()))) {
putPlaceholder(this);
}
});
});
});
흐림이 제대로 http://jsfiddle.net/gchoken/aswXV/ – Gowri
를 트리거링이 같은 뭔가를 찾고 계십니까? http://jsfiddle.net/cMSEJ/2/ –
감사합니다.하지만 원격 서버에서 실행할 때 작동하지 않습니다. 행운을 빌어 디버깅하려했습니다. 내가 다른 방법으로 쓸 수 있을지 궁금 해서요 – user1075529