Setting tabindex for disabled links

Setting tabindex for disabled links

adelaidetrabucoadelaidetrabuco Posts: 4Questions: 0Answers: 0
edited August 2013 in Bug reports
It should be set to tabindex="-1" when link is disabled, for example the button "First" when the user is seeing the first page.

Replies

  • adelaidetrabucoadelaidetrabuco Posts: 4Questions: 0Answers: 0
    did a workaround to solve the problem for now:

    $('#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');
    }
This discussion has been closed.