I am completely new to JS, HTML and CSS, and I am creating a small project using javascript. The project has multiple divs for boxes
My issue is whenever I use document.getElementById('id').innerHTML = 'test'
, to change text inside a div, the text in the div does change, but everything else disappears from the website.
Would greatly appreciate any help!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…