This code does not disable my element as expected
if(Multifile.n==0){
$("#btnUpload").attr("disabled","disabled");
}
This code does not enable my element as expected
$("#btnUpload").attr("disabled","");
I added these lines in jQuery.MultiFile.js after what I believe is the location where files are added and removed from the MultiFile object. As far as I can tell, MultiFile.n
is a counter.
How can I disable btnUpload when there are no files in the list, and enable it as long as there is at least one.