Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js remove li from ul

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

//Or with jQuery:
$('#myList').empty();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #remove #li #ul
ADD COMMENT
Topic
Name
6+7 =