$("input[type='file']").on('change', function () {
var oFReader = new FileReader();
var file = document.getElementById('input-file').files[0];
oFReader.readAsDataURL(file);
oFReader.onloadend = function(oFRevent){
var src = oFRevent.target.result;
$('.content').attr('src',src);
alert(src);
}
});