Assuming the text links to trigger a certain tab had an href like the
tabs themselves (good anyway for graceful degradation), then you could
try (untested):
$('#your-tabs').tabs();
$('a[href$=#Contacts],a[href$=#Faq] ', 'div.ui-tabs-panel').click
(function() {
$('#your-tabs').tabs('select', this.hash);
return false;
});
--Klaus
On 3 Feb., 20:08, foyle <[email protected]> wrote:
> I'm working on a website based on jQuery UI Tabs, and I've encountered
> a problem while trying to select a tab from a text link (within a tab)
> instead of clicking on the tab.
> In other words:
> - I have 3 Tabs: #Home, #Contacts, #Faqs
> - Inside #Home's tab, I would like to show both a link for #Contacts
> and one for #Faqs, and so being able to open one of those tabs not
> interacting with the main menu.
>
> I've read the guide
> onhttp://docs.jquery.com/UI/Tabs#...select_a_tab_from_a_text_link_inste...
> but I seem to fail while trying to implement it: unfortunately my web-
> knowledge ends with html and css and after a few hours of tries I
> decided to give up and look for help.
> And so, I was looking for a kind soul willing to enlight me how to
> solve this problem.
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---