jQuery UI widget : How can I get the widget's container? -


i'm developping jquery ui widget uising widget factory, , need selector containing widget.

to clear things :

  • i use jquery ui tabs (official)
  • my widget created in each tab (1 instance each tab, meaning different displays)
  • when perform action in tab, needs update widget located in same tab

the problem :

  • when perform said action, update not occur in right tab, in first one

i tried several modifications of listeners on actions, believe problem comes widget itself. defined classes (because it's meant appears multiple times), except tab defined id. tried make happen in widget element child of said div#id, doesn't work.

what need know how container of widget within widget's code, make modifications in right tab

thank you help.

edit : here's jsfiddle showing (very) basic structure of app. when fire action, on nearest widget instance, meaning 1 in same tab. actual effect in first tab. because (i think) of plugin locates own elements using classes. if say

get elements children of container created in

i believe work

you need use like:

myelement.mywidget("widget"); 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -