Answers for "set innerhtml to empty javascript"

1

how to innerhtml is empty

element.innerHTML.length == 0 ? element.appendChild(createdEl) : (element.innerHTML = '', modalNote.appendChild(createdEl));
Posted by: Guest on July-26-2020

Code answers related to "set innerhtml to empty javascript"

Browse Popular Code Answers by Language