Reputation: 195
I have a dynamic tab in which i want to show a HTML DIV.Now in the first click i am able to see the HTML DIV inside the dynamic tab .But if closed once and reopened again by clicking Hyperlink meant to open this Tab , I am not to get it this time.. I dont know what is happening here ..
Here is the code..
function addTab(title) {
if ($('#tt').tabs('exists', title)) {
$('#tt').tabs('select', title);
} else {
if (title == "Check in List") {
var content = $("#checkinuserform");
}
else {
var content = '<p>Hii</p>';
}
$('#tt').tabs('add', {
title: title,
content: content,
closable: true
});
}
}
In the code checkinuserform
is the HTML DIV id..
Please help me ..Thanks..
Upvotes: 0
Views: 39
Reputation: 2819
did you try to clone the div:
var content = $("#checkinuserform").clone();
Upvotes: 1