title: Creating a jquery plugin
body: <p>I'm trying to get started with writing a jquery plugin, have been reading tutorials but am stuck at the beginning.. Here's what I have:</p>
  
  <pre><code>(function($) {
  
    $.fn.testPlugin = function(options) {
      this.each(function() {  
        alert($(this));
      });
    }     
  })(jQuery);
  </code></pre>
  
  <p>I'm calling it with:</p>
  
  <pre><code>$('#id').testPlugin();
  </code></pre>
  
  <p>It doesn't however get into the this.each function...</p>
  
  <p>Basically I just want to simply get what is being called, in this case, id: id.... and then I'll be doing some stuff with that...</p>