Answers for "js remove li from ul"

3

js remove li from ul

var myList = document.getElementById('myList');
myList.innerHTML = '';

//Or with jQuery:
$('#myList').empty();
Posted by: Guest on August-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language