Trying to append lengthMenu to a predefined div element. Is this possible?

Trying to append lengthMenu to a predefined div element. Is this possible?

jturneyjturney Posts: 3Questions: 2Answers: 1

Div
<div id="VeiwSelect" style="float:right;"></div>

```$(document).ready(function () {
var table = $('#waiversOnLineReport').DataTable({
"bSort": true,
"pagingType": "full_numbers",
"dom": 'T<"clear">lbrtip',
"lengthMenu": [[10, 50, 100, -1], [10, 50, 100, "All"]],
"language": {
"lengthMenu": "View MENU records per page"

        }
    });```

And With
"dom": 'T<"clear"><"#id VeiwSelect"l>brtip',

Tried to use it like button: No luck
var lengthMenu = new $.fn.dataTable.lengthMenu(table, { lengthMenu: [{ tag: 'VeiwSelect', text: 'Hello' }] }).container().appendTo($('#VeiwSelect'));

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.