Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js remove li from ul

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

//Or with jQuery:
$('#myList').empty();
Comment

PREVIOUS NEXT
Code Example
Javascript :: access selected option in jquery 
Javascript :: javascript refresh page 
Javascript :: MVC 5 controller return json value to view 
Javascript :: convert number to word crore/lakhs 
Javascript :: express routing 
Javascript :: npm registry 
Javascript :: merge 2 dictionaries with same keys javascript 
Javascript :: js capitalize first letter 
Javascript :: check template shopify 
Javascript :: copy array javascript 
Javascript :: exclude file types from formater vscode 
Javascript :: localstorage clear item 
Javascript :: inline style react 
Javascript :: programatic navigation vue router 
Javascript :: simple ajax request 
Javascript :: How to Use the toUpperCase() String Method in javascript 
Javascript :: javascript prime number 
Javascript :: jquery click 
Javascript :: regular expression to remove underscore from a string javascript 
Javascript :: dynamic event listener jquery 
Javascript :: pyspark from_json example 
Javascript :: syntax for srcset in react 
Javascript :: javascript set class of element 
Javascript :: hex string to int javascript 
Javascript :: javascript code 
Javascript :: vanilla javascript fade out 
Javascript :: iterate over array of objects javascript 
Javascript :: Reverse a String With Built-In Functions 
Javascript :: javascript enum 
Javascript :: format number with commas js 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =