Pagination title attribute

Pagination title attribute

the_bowwerthe_bowwer Posts: 2Questions: 0Answers: 0
edited August 2012 in General
Hello,

I can't find a way to add a title attribute to the elements of pagination. I use "full_numbers" as "sPaginationType".

Also, Is there a way to transform those to elements ?

I use 1.8.2 version of datatable.

Thanks fo help !

Replies

  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    > Also, Is there a way to transform those to elements ?

    Update to DataTables 1.9 :-)

    To set a title attribute you would just use a little jQuery:

    [code]
    $('div.dataTables_paginate span').attr('title', 'hello');
    [/code]

    If you want something more elaborate such as the text 'Next' etc, you can just use a different (more selective) selector.

    Allan
  • the_bowwerthe_bowwer Posts: 2Questions: 0Answers: 0
    Thanks, I'll use that line of code, because I can't update to 1.9 ( huge project ).
This discussion has been closed.