Why doesn't this getElementById function work?
<pre><code>&lt;div id="t"&gt;gf&lt;/div&gt;
&lt;div id="g"&gt;ds&lt;/div&gt;

function $() {
    return document.getElementById(arguments);
}

$('t', 'g').style.color = "red";
</code></pre>

<p>Is there something that I did wrong. It says cannot call style of null...</p>
