I can't get jQuery UI tabs to work when dynamically adding tabs and content.
<div id="wrap">
<ul></ul>
</div>
jQuery
var count = 1;
$('#addspan').click(function() {
$('#wrap').append('<span id="page' + count + '">testing</span>');
$('#wrap').find('ul').append('<li><a href="#page' + count + '">' + count + '</a></li>');
count++;
$('#wrap').tabs();
});
Check http://jsfiddle.net/qKBUu/1/
You can see that newly created content is not showing in it's respected tabs. All content is showing at once and tabs are not working.