title: jQuery UI widget : How can I get the widget's container?
body: <p>I'm currently developping a jQuery UI widget uising the widget factory, and I need to get the selector containing my widget.</p>
  
  <p>To clear things up : </p>
  
  <ul>
  <li>I use jQuery UI tabs (official)</li>
  <li>My widget is created in each tab (1 instance for each tab, meaning different displays)</li>
  <li>When i perform an action in a tab, it needs to update the widget located in the same tab</li>
  </ul>
  
  <p>The problem :</p>
  
  <ul>
  <li>When I perform the said action, the update does not occur in the right tab, but in the first one</li>
  </ul>
  
  <p>I tried several modifications of the listeners on my actions, but I believe the problem comes from the widget itself. Everything is defined with classes (because it's meant to appears multiple times), except for the tab itself who is defined with an id. I tried to make it happen in the widget element which is a child of the said <code>div#id</code>, but it doesn't work.</p>
  
  <p>What I need is to know how to get the container of the widget from <strong>within</strong> the widget's code, to make the modifications in the right tab</p>
  
  <p>Thank you for you help.</p>
  
  <p><strong><em>EDIT</em></strong> : here's a <a href="http://jsfiddle.net/Squ36/KdthS/" rel="nofollow">jsfiddle</a> showing the (very) basic structure of my app. When I fire my action, I do it on the nearest widget instance, meaning the one in the same tab. But the actual effect is in the first tab. This is because (I think) of my plugin who locates its own elements using classes. But if I could say</p>
  
  <blockquote>
    <p>Get the elements who are children of the container I was created in</p>
  </blockquote>
  
  <p>I believe it would work</p>