Question should not have been closed. It's not about grabbing elements by className. You need to check that there is no id. Please reopen.
<div class="car">...</div>
<div class="car">...</div>
<div class="car">...</div>
Somewhere in my HTML code there are div tags with a specific class, like car. But they do not have an id selector. I am trying to print all of their innerHTML in a row but I can't use the code document.getElementById("car").innerHTML. How can I achieve this? Thanks
 
     
     
     
     
    