> I got this problem > > var $tabs = parent.$('#operativitaframe').contents().find > ('#tabsContainer').tabs(); > alert($tabs); > > This prints [object Object]; > how can I know if this is the tabs object instead of something else?
$tabs is actually a jQuery object. tabs() may add some additional new properties (prevObject, context) but it would be an unreliable to check against those properties as other objects may add similar properties. If you are assigning to $tabs when calling tabs() why would you need to check it again? Calling tabs() again should not be an issue or you could work around it by setting a flag.