I am attempting to use some (simple) code to remove a JQuery UI tab that I had created dynamically. Unfortunately, it's not cooperating.
Here is the javascript method I'm using:
function removeTab(tabName) {
var tabIndex = -1;
$('#tabbedPanel > ul > li > a').each(
function(i) {
if (this.href == tabName) {
tabIndex = i;
}
});
$('#tabbedPanel').tabs("remove", tabIndex);
}
Unfortunately, all I get is "Object doesn't support this property or method". I'm sure that the tab index is correct.
Any help out there?