Skip to content
Advertisement

javascript innerHTML adding instead of replacing

quick question, i know we can change the content of a

<div id="whatEverId">hello one<div> by using:

JavaScript

now, is there a way I can ADD stuff to the div instead of replacing it??? so i can get

<div id="whatEverId">hello one hello two<div>

(using something similar of course)

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement