Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add adjacent html

ul = document.querySelector('ul');

ul.insertAdjacentHTML('afterbegin','<li>Hello</li>'); 

// 	 <ul>
//		<li>Hello</li>
//    </ul>
 
PREVIOUS NEXT
Tagged: #javascript #add #adjacent #html
ADD COMMENT
Topic
Name
2+3 =