aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/tabs/ajax.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/tabs/ajax.html b/demos/tabs/ajax.html
index c62625791..284de57f9 100644
--- a/demos/tabs/ajax.html
+++ b/demos/tabs/ajax.html
@@ -14,7 +14,8 @@
$( "#tabs" ).tabs({
ajaxOptions: {
error: function( xhr, status, index, anchor ) {
- $( anchor.hash ).html(
+ var selector = $( anchor ).attr( "aria-controls" );
+ $( selector ).html(
"Couldn't load this tab. We'll try to fix this as soon as possible. " +
"If this wouldn't be a demo." );
}