<ol>
<li>11</li>
<li>333</li>
</ol>
<script>
var elems=document.getElementsByTagName('li');
for(var i=0;i<elems.length;i++){
elems[i].addEventListener('click',func);
}
function func(){
this.parentElement.removeChild(this);
}
</script><code></code>
function func(e){
e.currentTarget.parentElement.removeChild(e.currentTarget);
}