Executing a function to each item on a Nodelist in Javascript
<p>I want to add an <code>&lt;img&gt;</code> to every <code>&lt;td&gt;</code> tag with a certain CSS Class in my page.
I used "querySelectorAll" to look them up, like this:</p>

<pre><code>var painted = document.querySelectorAll('.painted');
</code></pre>

<p>Now I would like to add to each one of them a specific image with a unique ID. I assume I need to loop through the list somehow and edit each element's innerHTML, could anyone provide the syntax for that?</p>

<p>Thanks</p>
