JavaScript: how to get img and div elements using getElementsByTagName
<p>I have a tree structure as follows:</p>

<pre><code>&lt;ul id="theul275"&gt;
  &lt;li&gt;
    &lt;div id="red"&gt;&lt;/div&gt;
    &lt;img id="green" /&gt;
    &lt;script&gt;&lt;/script&gt;
    &lt;div id="blue"&gt;&lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>There are multiple UL's likes this on my page each with a different id. I am getting each UL by doing this:</p>

<pre><code>var child = document.getElementById('theul' + id).getElementsByTagName('*');
</code></pre>

<p>the problem is, I only want to get the children of each ul which are either div's or img's.
Is there a way to get elements by multiple tag names?</p>

<p>I really appreciate any help because I am kind of new to JavaScript! Thanks!</p>
