I'm trying to change the on alert function to make it just proceed so as to save user's time, as no additional button is needed to be pressed in order to proceed for the uploading of files, and alert is just a mere notice for users such that their files are successfully uploaded.
Codes in HTML
<form method="post" enctype="multipart/form-data" onsubmit="myFunction()"> {% csrf_token %}
<input name="input_file" type="file" id="input_file"/>
</form>
<script>
function myFunction() {
alert("The files have been successfully submitted");
}
</script>
Can anyone show me the solution to this recurring problem of mine? And also, I'm using jquery too. Thank you.