Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* jQuery */
someElement.text();
someElement.text(`New content`);
someElement.html();
someElement.html(`New content`);
/* JavaScript */
someElement.textContent;
someElement.textContent = `New content`;
someElement.innerHTML;
someElement.innerHTML = `New content`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment