Skip to main content

Search and Top Navigation

#5805 closed enhancement (worksforme)

Opened July 07, 2010 10:37AM UTC

Closed October 22, 2010 11:34PM UTC

Last modified October 11, 2012 09:15PM UTC

Custom id for remote tab

Reported by: ludoo Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.8.2
Keywords: hash anchor id Cc:
Blocked by: Blocking:
Description

I suggest to add capability to add a custom id for remote tab as well as local content.

So by changing line 135, we can add extra anchor on link.

//var id = self._tabId(a);
var id = href.split('#')[1] || self._tabId(a);

Instead getting an always numbered id such ui-tabs-1, i get myCustomId

<li><a href="ajax/content1.html#myCustomId">Tab 1</a></li>
Attachments (0)
Change History (4)

Changed October 22, 2010 11:34PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

You can already do this with the title attribute.

Changed April 11, 2011 02:21PM UTC by Backpacker comment:2

What if you still want to use the title tag for a nice title, that gets displayed when you hover over the link but use a custom (ugly looking) anchor with one or multiple id's in it?

Is there another way of doing a custom anchor for a remote tab?

Changed April 11, 2011 02:26PM UTC by scottgonzalez comment:3

This is being changed in 1.9, see http://forum.jquery.com/topic/tabs-api-redesign

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted