I am uploading image files using jQuery but whenever I upload any selected image. For this, I need to Priview display the Image in IE browser. But Firefox and Chrome Supported Following is set of functions .
My Code
<Script>
function previewImages(input) {
$('#ImagePreview').html('');
var fileList = input.files;
var anyWindow = window.URL || window.webkitURL;
for (var i = 0; i < fileList.length; i++) {
var objectUrl = anyWindow.createObjectURL(fileList[i]);
$('#ImagePreview').append('<a href="#" class="remove"></a><img src="' + objectUrl + '" class="img-polaroid" style="height:70px;width:70px;">');
window.URL.revokeObjectURL(fileList[i]);
}
}
<h1>Upload Image</h1>
<div class="form_scpop" >
<form action="" method="get">
<input type ="file" onchange="previewImages(this);" multiple/>
<input name="" type="" id="image_alt" class="input_txt" />
<div id="ImagePreview" ></div>
<button class="btn btn-info" type="button" onclick="closeimgwindow()">Save</button>
</form>
</div>