Adding jQuery UI Tabs

Adding jQuery UI Tabs

Hello,

I'm a beginner to jQuery.
I wanted to know how do I go about the following:

I've a tabbed interface in my application.

When the user clicks on one of the buttons(the first time) in one of the tabs, a new tab is dynamically added with data from this existing tab(the tab which contains the button element). The second time, there should not be any tab creation and the the newly created tab should be selected directly, with may be different information

Some examples would greatly help matters.

Thanks.