T
teranetsecurity
so suppose I have a list (ul) and In this list I have some (li's)... I
want to be able to delete the li's from a link in the div..
so somthing that would theoretically look like this
<ul>
<li id="one>
<a href="#"
onclick="this.parentNode.parentNode.removechild(li);">check</a>//this
doesnt work
<li id="two">
<li id="three>
</ul>
I want remove the li's dynamically using somthing that is like the
method I have above but I am unable to get it to work. I can get it to
display the id of the li via this.parentNode.parentNode.id but I am
unable to actually remove it from the DOM. Any ideas. thanks
want to be able to delete the li's from a link in the div..
so somthing that would theoretically look like this
<ul>
<li id="one>
<a href="#"
onclick="this.parentNode.parentNode.removechild(li);">check</a>//this
doesnt work
<li id="two">
<li id="three>
</ul>
I want remove the li's dynamically using somthing that is like the
method I have above but I am unable to get it to work. I can get it to
display the id of the li via this.parentNode.parentNode.id but I am
unable to actually remove it from the DOM. Any ideas. thanks