tags:

views:

128

answers:

1

Hello,

I added this to my already existing JQuery tab:

function createTab(name) {
    // this will add a tab via the standard method
    $("#tabs").tabs("add", "#fragment-4", name);
    $("#fragment-" + name).css("display", "block");
}

my question is, what is the syntax that allows me to create content inside the newly created tab?

A: 

Just add the contents to the div you are adding:

$('#fragment4').html('Contents added via JS');
RaYell
except, replace <b> tags with <strong> tags! :D
Jason
Tags inside html() are not relevant for the answer. I removed them all.
RaYell