readURL == image change on file selected
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function(e) {
$('#file_img').attr('src', e.target.result);
}
reader.readAsDataURL(input.files[0]); // convert to base64 string
}
}
//$("#imgInp").change(function() {
// readURL(this);
//});