[jQuery] Re: ui.tabs adding an onclick event to a nested tab

2009-10-07 Thread Dylan
UPDATE: Within the function, I get the parent div elements ID. var divId = $(this).parents(“div[id^=tabs-]”).attr(“id”); Then I thought I could use this ID of that div, to select the link that has that ID as an anchor? But this last part just returns [Object object]? alert($(#tabs ul li

[jQuery] Re: ui.tabs adding an onclick event to a nested tab

2009-10-07 Thread Dylan
var divId = $(this).parents(div[id^=tabs-]).attr(id); var sTag = inner tab: + $(#tabs ul li a[href=#+ divId +]).text (); sTag = sTag + \nmain tab: + ui.tab.textContent; alert(sTag); On 7 Oct, 10:26, Dylan dylan.h...@gmail.com