Quantcast
Channel: DataTables 1.9 — DataTables forums
Viewing all articles
Browse latest Browse all 1816

Change sLengthMenu from dropdown to somethign else

$
0
0
Instead of having a drop-down for the sLengthMenu I would like to have a series of <a> tags, like the following:

"sLengthMenu"     : '<a class="length_button">25</a>' +
                    '<a class="length_button">50</a>'+
                    '<a class="length_button">100</a>'

The question is, how do I tie that to use the already dataTable feature like the drop-down already uses. Ideally I would like the user to click 100 and act is if the user had click the 100 from the drop-down.

Viewing all articles
Browse latest Browse all 1816

Latest Images

Trending Articles



Latest Images