title: DataTables - how do you set a default value for lengthMenu?
body: <p>DataTables allows you to change the options in the dropdown menu for number of records shown per page: <a href="https://datatables.net/reference/option/lengthMenu" rel="noreferrer">https://datatables.net/reference/option/lengthMenu</a></p>
  
  <p>However, if you define it as per the example:</p>
  
  <pre><code>"lengthMenu": [ 10, 25, 50, 75, 100 ]
  </code></pre>
  
  <p>You will get a default option of 10, because this appears first in the array.</p>
  
  <p>What if you want to use something else (e.g. 50 or 75) as the default option? I can't see any method on their documentation that allows this. I understand you could use jquery to target by element value, but that seems like a terrible idea.</p>