0
사용자가 이미지를 미리로드하지 않고 입력 필드를 클릭하면 서버에서 이미지를 가져 오려고합니다.jQuery 요청 이미지 포커스
입력이 집중되어있을 때 스팬의 텍스트를 표시하지만 이미지를 요청하려면 어떻게 변경해야합니까?
<!DOCTYPE html>
<html>
<head>
<style>span {display:none;}</style>
<script type="text/javascript" src="scripts/jquery-1.3.2.min.js"></script>
</head>
<body>
<p><input type="text" /> <span>focus fire</span></p>
<script>
$("input").focus(function() {
$(this).next("span").css('display','inline').fadeOut(1000);
});
</script>
</body>
</html>
감사