If you want to delete a particular list (li) from the listing, you can easily do this with the following code.
$('#demo ul li[rel="'+id2+'"]').remove();
<div is="demo ">
<ul>
<li rel="id1">This is just a demo. </li>
<li rel="id2">Lorem Ipsum is simply dummy text of the printing and typesetting industry. </li>
<li rel="id3">Lorem Ipsum has been the industry's standard dummy text ever since the 1500s. </li>
</ul>
</div>
0 Comment(s)