javascript - how to display image in file upload dynamically -
I have created a function for file upload. I get the file name and file type and do not know how to display pictures using dynamic controls! AddFileUpload function () {var div = document.createElement ('DIV'); Div.innerHTML = '& lt; Input id = "file" + counter + '"name =" file' + counter + '"type =" file "/> + '& Lt; Input id = "button '+ counter +'" type = "button" 'value = "remove" onclick = "RemoveFileUpload (this)" />;'; Document.getElementById ("FileUploadContainer") appendChild (div). Counter ++; } RemoveFileUpload function (div) {document.getElementById ("FileUploadContainer"). RemoveChild (div.parentNode); } Here's some code from the fun project I have is. & lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Script & gt; Id (e) by function {return document. GetE...