Hi,
I have a element which is dynamically created and sometimes i need to remove it. The element is appended to differnt divs based on user interaction.
Right now Im doing something like, and it works but it seems rather silly.
I want something like.
You know what i mean. I know I could prototype something but does anyone know another way?
I have a element which is dynamically created and sometimes i need to remove it. The element is appended to differnt divs based on user interaction.
Right now Im doing something like, and it works but it seems rather silly.
Code:
document.getElementById("someDiv").parentNode.removeChild(document.getElementById("someDiv"));
I want something like.
Code:
document.getElementById("someid").destroy! RAWR!
You know what i mean. I know I could prototype something but does anyone know another way?