1

My html code is

 <ul>
    <li>list1</li>
    <li>list2</li>
    <li>list3</li>
    <li>list4</li>
    <li>list5</li>
  </ul>

when i select the first three list items and using the following code to delete the selected list items

enter image description here

 sel = window.getSelection();
    if(!sel.isCollapsed){
        sel.deleteFromDocument();
    }

its looks like the following

enter image description here

how to delete the selected lists with bulletins,

MKB
  • 777
  • 1
  • 9
  • 27
Dhanush Bala
  • 1,122
  • 1
  • 14
  • 27
  • @MKB, i cant able to select the first
  • tag where i start selecting
  • – Dhanush Bala Sep 15 '16 at 05:14