I'm really stuck on this and can't find any answers that are helpful.
Hopefully someone here can help me.
Very simply, I'm adding a tab to the UI when the user clicks a link.
That part works ... I can add a tab no problem.
$(document).ready(function(){
$("#container").tabs();
$("#test").click( function() {
$("#container").tabs
("add","test.html","test");
});
});
Unfortunately, an added tab doesn't automatically become selected.
Seems like fairly intuitive behavior ... click something, add a tab,
select the tab automatically for the user.
SO... how do I select the newly added tab? The example code in the
tabs FAQ doesn't do anything, and I'm having a very hard time trying
to figure out how that example code works anyway. (I'm new to jquery
and half this stuff is still voodoo to me)
Also in addition to automatically selecting a newly added tab, I also
need to select a tab if the user has already opened a link in a tab.
Subsequent clicks on the same link should select the existing tab
rather than open multiple copies of it. Is this possible?
Thanks
--Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---