jQuery like custom functions
<p>I have been wondering how I can create functions like jQuery. For example: <code>$(ID).function()</code></p>

<p>Where ID is the id of an HTML element, <code>$</code> is a function that return the document.getElementById reference of the element "ID" and function is a custom  javascript function.</p>

<p>I'm creating a little library which implements some functions. And I want to use that sintax without using jQuery.</p>

<p>Now, my questions are: how I can implement that? What is the name of the tecnique that allow that? </p>

<p>Edit:</p>

<p>What I want to do is this: </p>

<blockquote>
  <p>HTMLElement.prototype.alertMe = function() {alert(this.value);}</p>
</blockquote>

<p>Then, when I call <code>document.getElementById('html_input_id').alertMe()</code>, it must show an alertbox with the input value. But <code>HTMLElement.prototype</code> doesn't work in IE.</p>
