I have this in my html, which works:
<input id="File1" type="file" runat="server" onchange="fileUpload(value)" />
But for IE8 and below I have a button to create a new input: type=file It is working and uploads the file.
But I need to send the value to a function first.
newUploadBox.setAttribute("onchange", "fileUpload(value)");
Now when I go into inspect element, everything looks right.
It renders out like the original input.
Unfortunately, it does not go to the function like the first one does.
I fond some post on here: Dynamically added SELECT element does not fire onchange event in Internet Explorer && onchange with alert not working in ie
But none are able to help me.