when any user selects a file and then to detect in jquery the value of the file element changes or not put this code in the jQuery file
$(document).ready(function() { //$("#upload").attr("disabled","true"); $("#upload").attr("disabled","disabled"); $("#file").change(function() { //alert("someting change"); //value = $(this).val();//get fake path of file //alert(value); $("#upload").removeAttr("disabled"); //enabling upload button }); });
the file type button is turned on, and the formβs download button is disabled when the user selects the file, then the value will change and the download button will turn on, which means that we can send our form.
source share