I have a file upload form on a site and i’d like to replace the form with the text “uploading…” whilst the file uploads. so far i have:
$( document ).ready(function(){
$(form).submit(function(){
$('#key').html("Uploading...");
});
});
the submit part works because i got it to alert on submit and the .html part works because it will change the html when it’s not in the submit function. The form is in a div with the id of “key”.
1 Answer