how to remove a list item from <li> in javascript code example
Example: js remove li from ul
var myList = document.getElementById('myList');
myList.innerHTML = '';
//Or with jQuery:
$('#myList').empty();
var myList = document.getElementById('myList');
myList.innerHTML = '';
//Or with jQuery:
$('#myList').empty();