Setting tabindex for disabled links
Setting tabindex for disabled links
adelaidetrabuco
Posts: 4Questions: 0Answers: 0
It should be set to tabindex="-1" when link is disabled, for example the button "First" when the user is seeing the first page.
This discussion has been closed.
Replies
$('#example').dataTable({
"fnDrawCallback": function(oSettings) {
var $tableWrapper = $(this).closest('.dataTables_wrapper');
$tableWrapper.find('a.ui-state-default').attr('tabindex', '0');
$tableWrapper.find('a.ui-state-disabled').attr('tabindex', '-1');
}