4
I have a form and inside this form I have an input file type.
<form id="formulario" method="post" action="upload.php">
<input id="imagem" name="imagem" type="file" class="da-custom-file customfile-input" >
</form>
and in jQuery I’m trying to give the Submit on the form:
$('#imagem').live('change',function(){
$('#formulario').submit(function(){
alert('teste');
});
});
Only that the Submit does not work. In case it does not give the Alert() with the message
teste
.
Does anyone have any idea what I might be doing wrong?