How to add accessible text to datatable label
How to add accessible text to datatable label

i have this
"language": {
lengthMenu: "_MENU_"
},
on which I get this result below:
<div class="dataTables_length" id="dataTable_length">
<label>
<select name="dataTable_length" aria-controls="dataTable" class="form-control">
<option value="10">10</option>
<option value="25">25</option>
</select>
</label>
</div>
but I want to add aria-label to the label tag:
<div class="dataTables_length" id="dataTable_length">
<label aria-label="table length">
<select name="dataTable_length" aria-controls="dataTable" class="form-control">
<option value="10">10</option>
<option value="25">25</option>
</select>
</label>
</div>
This discussion has been closed.
Answers
You can add that in
initComplete
, see here,Colin