Add generation of aria-controls and aria-labeledby attributes

This commit is contained in:
conzett 2011-11-22 20:04:44 -05:00
parent 9afc75f2b1
commit deb887727a

View File

@ -46,7 +46,6 @@
}
$(this).attr('role', 'tab');
});
$(tabPanels).each(function(index) {
@ -58,6 +57,8 @@
}
$(this).attr('role', 'tabpanel');
$(this).attr('aria-labeledby', $(tabs[index]).attr('id'));
$(tabs[index]).attr('aria-controls', $(this).attr('id'));
});