I am dynamically creating the links like
var mydivs = document.getElementById("attach");
var bTag = document.createElement('a');
bTag.setAttribute('docid', "doc");
bTag.innerHTML = "doc";
mydivs.appendChild(bTag);
Then a link is creating dynamically. Then on button click i want to remove this link.
How can i remove this link on button click. I will be have more than one link in the page.
Any help is appreciated.
Regards
If you intend to use jQuery than you can do like this: