document.getElementById() vs $()
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4069982/document-getelementbyid-vs-jquery">document.getElementById vs jQuery</a>  </p>
</blockquote>



<p>I am learning jQuery and javascript.</p>

<ul>
<li><p>I wonder why the <code>$()</code> function of jQuery does not replace the <code>document.getElementById()</code> function of javascript.</p></li>
<li><p>Isn't it the role of <code>$()</code> ?</p></li>
<li><p>If not, what's the role of <code>$()</code> ?</p></li>
</ul>

<p>I got to this question because <code>$().outerHeight</code> doesn't work.</p>

<p>Thank you.</p>
