Код: Выделить всё
div.someClass
{
background-color: cyan;
}< /code>
DIV Test
DIV Test
Original text.
let theDiv = document.getElementById("someId"); // how do I get "someId" using Javascript?
theDiv.insertAdjacentHTML("beforeend", "
Some other text
");
Подробнее здесь: https://stackoverflow.com/questions/797 ... at-i-am-in
Мобильная версия