D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
championswimmer
Full window
Github gist
jsintro1
<head> <title> JS Intro </title> </head> <body> <div id="myel"> <p> para one</p> <p> para two</p> <p> para three</p> <p> para four</p> </div> <script> console.log('Hello World!') var myel = document.getElementById('myel'); myel.children[2].nextElementSibling.parentElement; var newPara = document.createElement('p'); newPara.innerHTML = "some new text"; myel.append(newPara); </script> </body>