How do I create methods for an HTML element?
<p>I'm trying to create a simple, small and basic javascript framework just for learning purposes.
But the thing is that i'm allready stuck at the very basics.</p>

<p>I'm trying to do something like this:</p>

<pre><code>$('testdiv').testFunction();
</code></pre>

<p>And the code i've written for that:</p>

<pre><code>var elementID;
var smallFramework = {

  $:function(id) {
    this.elementID = id;
  },

  testFunction:function() {
    alert(this.elementID);
  }

};
window.$ = smallFramework.$;
</code></pre>

<p>But in return I get:</p>

<pre><code>$('testdiv) is undefined
</code></pre>

<p>Can anyone help me with this small and hopefully easy question?</p>
