Hi folks,

I'm new to Javascript and jQuery. I've just tried the Ui.tabs and it work
fine, however I would like to add a new tab by clicking on individual items
in a list but can't figure out how to do it.

I have tabs in a <div id="study-tab> which work. Then in each tab i have a
list of items to which i have assigned a class="itemslist".

# Item1  etc. 

I would like to click on each item and create a new tab in which i load the
items detals.

I have tried this, but it does not work.

<script>
     $('.listitem').click(function() { // bind click event to link
            $("#study-tab").tabs("add", '#test', 'New Tab');
            return false;
    });
</script>

Thanks

ger
-- 
View this message in context: 
http://www.nabble.com/Append-new-tab-tp18392038s27240p18392038.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to