I created dynamic tabs from the example code.
function addTab(title, url){
if ($('#tt').tabs('exists', title)){
$('#tt').tabs('select', title);
} else {
var content = '<iframe scrolling="auto" frameborder="0" src="'+url+'" style="width:100%;height:100%;"></iframe>';
$('#tt').tabs('add',{
title:title,
content:content,
closable:true
});
}
}
In iframe content I have disabled form. When user click 'Edit Form' link button for enable form to edit data. I need to hide close (x) button on present selected tab. Prevent user close tab before save form.
I don't know how to refer to parent tabs object. Could you please advice?
Thank you.