<input hidden type="file" id="inpfile" accept="image/*">
$('#inpfile').change(function(){
var a = this.files[0];
var reader = new FileReader();
reader.readAsDataURL(a);
reader.onload = function (e) {
var imga = new Image();
imga.src = e.target.result;
}
});
Where is that image? How can I really get it on screen and change its style?
imgtag (wherever you want that image). And attributesrcwith valuee.target.resultdocument.body.appendChild(imga)Where is that image?why did you puthidden?