I am trying to use some (simple) code to remove a jQuery user interface tab that I created dynamically. Unfortunately, he is 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 "The object does not support this property or method." I am sure the tab index is correct.
Any help there?
Jason source
share