jQuery Tabs - Following External Links
- by Ricky
I have jQuery Tabs setup, but am trying to get a Tab to follow an external link.
I have tried to use the code from jQuery, but the URL still loads via Ajax instead of redirecting the browser to the url:
http://jqueryui.com/demos/tabs/#...follow_a_tab.27s_URL_instead_of_loading_its_content_via_ajax
Current code:
$(function() {
$('#rotate > ul').tabs({
select: function(event, ui) {
var url = $.data(ui.tab, 'load.tabs');
if( url ) {
location.href = url;
return false;
}
return true;
}
});
});