1

I need to remove the text "show" and "entries" from a DataTable plugin via jQuery. I am using the CDN so I can not edit the raw code.

<div class="dataTables_length" id="example_length">
    <label>
       Show
          <select name="example_length" aria-controls="example" class="">
       entries
    </label>
</div>
Gyrocode.com
  • 57,606
  • 14
  • 150
  • 185
diogenes
  • 1,865
  • 3
  • 24
  • 51
  • 1
    Not a Duplicate. your reference did not answer the question. Those solutions removed the div. Need to replace the text. – diogenes Nov 21 '17 at 10:40

1 Answers1

2

Use language.lengthMenu option.

For example:

$('#example').DataTable({
   "language": {
      "lengthMenu": "_MENU_"
   }
});
Gyrocode.com
  • 57,606
  • 14
  • 150
  • 185