title: Testing if JQuery tooltip is initialized
body: <p>I am using a JQuery UI Tooltip along with AJAX to validate a form.</p>
  
  <p>I am using one tooltip for each fields and I am changing the content of this tooltip depending on the error my AJAX return.</p>
  
  <p>For my code to be complete I need to test if the tooltip is already initialize for this field (change content) if not (create the tooltip).</p>
  
  <p>The problem is that I dont know any affective method of checking if the tooltip is initialize or not. </p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="text" id="text1"/&gt;
  &lt;input type="text" id="text2"/&gt;
  </code></pre>
  
  <p>I have tried the following but they all fail to test if the tooltip is already created or not.</p>
  
  <p>JQUERY:</p>
  
  <pre><code>if($("#text1").tooltip() != null) //or $("#text1").tooltip() != 'undefined'
  //does'nt work because .tooltip() always return an object.
  
  if(typeof $("#text1").tooltip() != null)//or typeof $("#text1").tooltip() != 'undefined'
  //does'nt work always return an object.
  
  if($("#text1").tooltip().hasOwnProperty('option'))//or $("#text1").tooltip().hasOwnProperty('content')
  //does'nt work it always return false.
  </code></pre>
  
  <p>If someone could help me find a way to check if the tooltip exist it'd be really appreciated</p>
  
  <p>Thanks!</p>