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,277
  • 6
  • 28
  • 48
  • You mean you want a live preview without submitting the page? Because then your question needs re-wording. – Pekka Sep 06 '11 at 07:37
  • 2
    There is already answered question here: [http://stackoverflow.com/questions/4459379/preview-before-upload-image][1] [1]: http://stackoverflow.com/questions/4459379/preview-before-upload-image – Andrew Makarenko Sep 06 '11 at 08:04

0 Answers0