Error in parentNode.replaceChild while hiding content which is available in web page
JavaScript
1
Posts
1
Posters
0
Views
1
Watching
-
I am developing a web upload page in asp.net. Here I am providing interface to select different files as in thisfig. It works properly. Here I have provided option to remove wrong file selections before uploading. But if I click on second or 3rd button all the selected images(1,2,3) gets deleted from page instead of respective selection. This is the function I have given to button click,
function attachmentremove()
{
var browse = document.getElementById("FileUpload");
var newbrowse = browse.cloneNode(false);
browse.parentNode.replaceChild(newbrowse, browse);}
I have given 3 different functions for different button click. How to solve this error ?