//이미지미리보기 $(frm.image).on("change", function(e){ $("#image").attr("src", URL.createObjectURL(e.target.files[0])); });
<input type="file" id="file"> <img src="" id="image">
image태그에 타겟을 미리 보여준다라는 의미이다.
실행하면 이런 모습임.