With this code, you are trying to display the contents of a tab, and even this will not work.
As stated in the doc
each tab must be activated individually
And it needs to be activated in the data-toggle="tab" element, and not in the content.
$('#data').load('functions/test_function.php', { method: "example"}, function() { var $tab = $('[data-toggle="tab"][href="#data"]');
You can save the explicit selector [data-toggle="tab"][href="#data"] or set id="tabID" to the hidden tab.
source share