My browser is not displaying the image. Something wrong with this code?
$(document).ready(function ()
{
$("input[name='fun_imagem']").change(function ()
{
readImage($(this));
});
});
function readImage(input) {
var arquivo = new FileReader();
arquivo.onload = function(e)
{
$("#imagem-figure-usuario").attr("src", e.target.result);
};
arquivo.readAsDataURL(input.files[0]);
}