How do I get all elements of a particular type in javascript?
<p>I need to hide all elements of type 'section' in my document apart from one with a particular ID.</p>

<p>In jquery this would be easy</p>

<pre><code>$("section").hide();
$("section#myId").show();
</code></pre>

<p>How would I do this without jquery??</p>

<p>(I need it to happen as soon as the page loads and to not be noticable). I also need it to work cross browser.</p>

<p>Thanks.</p>
