set text of dom element
document.getElementById("myBtn").textContent = 'Hello World';
set text of dom element
document.getElementById("myBtn").textContent = 'Hello World';
js change div content
let element = document.getElementById("test");
let newContent =`
<h1>New Title</h1>
<p>New Content</p>
`;
//changing the content in your element
element.innerHTML = newContent;
js add content
document.getElementById("parentID").appendChild(/*..your content created using DOM methods..*/)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us