Hi!
I'm trying to strat jQuery Tabs after I loaded an html file into an element and changed some contents.
Something like this...
$('#content').load('external.html');
$('body').ajaxComplete(function(){
$('#content').find('title').remove();
$('table').contents().unwrap(); ... etc.
$('a').each(function(){
link = $(this).attr('href');
link += '.html';
$(this).attr('href' , link);
$(this).addClass('task');
});
$('.task').wrapAll('<ul></ul>');
$('.task').wrap('<li></li>');
});
so far so good ... BUT
when $('#content').tabs ... is added for some reason a lot of <li> and <ul> elements appear.
Does somebody know why?