I am searching for a jQuery script that selects a file when the form is automatic submitted.
Try .change() event for the input file control. Something like
<form action="test.html" id="form1">
<input type="file" id="fil1" />
</form>
$(function(){
$("#fil1").change(function(){
$("#form1").submit();
});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With