I am trying to access and remove a tab that was created dynamically.
It works fine in FF but in IE a -1 is returned for the index,
indicating that it was not found.
function showInsurance(action){
insuranceIndex = $("#tabNav a").index( $('a[href=#insurance]') )
if(action == "show" )
{
if (insuranceIndex == -1)
$('#container > ul').tabs('add', '#insurance',
'Insurance',$
('#container > ul').tabs('length') - 1);
}
else{
$('#container > ul').tabs('remove',insuranceIndex);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---