Answers for "javascript add adjacent element"

0

javascript add adjacent html

ul = document.querySelector('ul');

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

// 	 <ul>
//		<li>Hello</li>
//    </ul>
Posted by: Guest on November-05-2020

Browse Popular Code Answers by Language