I have a form and inside this form I have an input of type file.
<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've tried trying to give submit in the form:
$('#imagem').live('change',function(){
$('#formulario').submit(function(){
alert('teste');
});
});
So 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?