Bug Tracker

Opened 15 years ago

Closed 13 years ago

#2384 closed enhancement (invalid)

Select Added Tab

Reported by: smcguinness Owned by:
Priority: minor Milestone: 1.2.4
Component: plugin Version: 1.2.3
Keywords: Tabs Cc:
Blocked by: Blocking:


I found that opening a created tab is a bit cumbersome, however I finally accomplished it (a bit dirty though). "add" currently has the url and title of the tab, I think there should be another param which could be a boolean for whether to select the tab upon creation. That process actually seems to be what most people would want anyway when adding a new tab.

Note: This is how I did it now (like I said, probably not the best way)

$("a.details").click(function() {

var title = $(this).attr("title"); var url = $(this).attr("href"); var last_tab = $("#example > ul li").length; $("#example > ul").tabs("add", url, title).tabs("select", last_tab); return false;


Change History (1)

comment:1 Changed 13 years ago by dmethvin

Resolution: invalid
Status: newclosed

This is not a jQuery core bug. Please report plugin bugs to the plugin's author, or ask on the jQuery forums. jQuery UI bugs should be reported on the UI bug tracker, http://dev.jqueryui.com .

Note: See TracTickets for help on using tickets.