3
I have the following code in a input of type file:
$('input-imagem').on('change', function() {
alert( $(this).val());
});
It works almost straight, when I click off the input he gives the alert again and this should not occur, should give the alert only when I choose an image.
What is the
input-imagem? a select? Already now missing a#or.here :$('input-imagem')– Sergio
He put @Sergio is type file !!!
– user6026