title: tooltipster get value from span ID
body: <p>I need to retrieve the value of the tag 'id' in a span when using the Tooltipster jQuery script. Below is the used code. When doing an alert on the variable 'id' to check, I get the result 'UNDEFINED'. </p>
  
  <p>Can anyone please advise how to get '1928_34' as a result for the variable 'id'? Thx!</p>
  
  <h1>HTML</h1>
  
  <pre><code>&lt;div class='content'&gt;
      &lt;span id='1928_34" title="Please wait..." &gt;Click here&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <h1>Tooltipster jQuery</h1>
  
  <pre><code>$(document).ready(function() {
      $( ".content span" ).tooltipster({
          contentAsHTML: true,
          interactive: true,
          trigger: 'click',
          arrow: false,
          minWidth: 900,
          minHeight: 900,
          maxWidth: 900,
          plugins: ['tooltipster.sideTip', 'laa.scrollableTip'],
  
          functionBefore: function(instance, helper) {
              var $origin = $(helper.origin);
              var id = $(this).attr('id');                    
              alert(id); 
              if ($origin.data('loaded') !== true) {
                  $.get('get_tooltip.php?id='+id, function(data) {
                      instance.content(data);
                      $origin.data('loaded', true);
                  });
              }
          }
      });             
  });
  </code></pre>