How to get selector attribute in jquery qTips?
<p>I'm trying to get the "id" attribute of a tag that also calls jQuery qTips. The setup is as follows:</p>

<pre><code>$('.selector').qtip({
   content: {
      text: 'Loading...', // The text to use whilst the AJAX request is loading
      ajax: {
         url: 'getInfo.php', // URL to the local file
         type: 'GET', // POST or GET
         async: false,
         data: { id: $(this).attr('id')}, // !! PROBLEM HERE
         success: function(data, status) {

            // Set the content manually (required!)
            this.set('content.text', data);
         }
      }
   }

});
</code></pre>

<p>The caller is as such:</p>

<pre><code>&lt;a href='http://www.google.com' class='selector' id='Jerome'&gt;Jerome&lt;/a&gt;
</code></pre>

<p>but for some reason $(this).attr("id") is undefined. The qTip shows up but is blank, and the GET call shows up as not passing any data in Firebug. What am I missing?</p>

<p>Thanks!</p>

<p>Edit: also, <code>this.attr</code> returns "this.attr is not a function"</p>
