0

Possible Duplicate:
Preview an image before it is uploaded

Assume that I have some elements like these:

<div id="tmp_image">
<!-- I wanna show image here -->
</div>

<input name="image" type="file">

All I want is : when I select a picture from the open dialog ,the image will be appearred in the "tmp_image" div (but only real uploaded when I submit the form).

How could I do that?

Community
  • 1
  • 1
Nấm Lùn
  • 1,239
  • 5
  • 27
  • 47

0 Answers0