A javascript upload progress display in HTML5
问题 I am very new to js and html programming. I am using following code to make a progress-bar which displays file upload progress. But it is not working on tryit editor <!DOCTYPE html> <head> <meta charset="UTF-8"> <style> .progress-wrapper { width:100%; } .progress-wrapper .progress { background-color:green; width:0%; padding:5px 0px 5px 0px; } </style> <script> function postFile() { var formdata = new FormData(); formdata.append('file1', $('#file1')[0].files[0]); var request = new