<form id="form1" runat="server">
 <input type='file' id="upimg" multiple />
</form>

function readURL(upimg) {
    if (upimg.files && upimg.files[0]) {
        var i;
        for (i = 0; i < upimg.files.length; ++i) {
          var reader = new FileReader();
          reader.onload = function (e) {
              $('#form1').append('<img src="'+e.target.result+'">');
          }
          reader.readAsDataURL(upimg.files[i]);
        }
    }
}

jQuery("#upimg").change(function(){
        readURL(this);
    });

Hope this will helps.

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.