A
A
Andrey Frolov2015-10-30 17:18:46
JavaScript
Andrey Frolov, 2015-10-30 17:18:46

How to replace the entire selected html element via JavaScript (not jQuery!)?


There is a Text div
given code to replace the word "Text"
box.innerHTML = 'New Text';
how to replace the whole div?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ineshin, 2015-10-30
@IonDen

outerHTML

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question