title: How to get the object's id?
body: <p>How to get the id on an object, i know the id is hola, but i need to get it during runtime</p>
  
  <pre><code>alert($('#hola').id);
  </code></pre>
  
  <p>The idea is this:</p>
  
  <pre><code>&lt;script&gt;
  
      (function ($) {
  
      $.fn.hello = function(msg) {
          alert('message ' + msg);
          alert('is from ' + this.id); // this.id doesn't work
      };
  
      })(jQuery);
  
  
      $('#hola').hello('yo');
  
  &lt;/script&gt;
  </code></pre>