Datatables input background

Transparent background on an input element is ugly

by CloudTables

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="https://cdn.datatables.net/1.10.24/js/jquery.dataTables.js"></script>
<script src="https://cdn.datatables.net/1.10.24/js/dataTables.jqueryui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/eggplant/jquery-ui.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.24/css/dataTables.jqueryui.css">
<table id="foo">
<thead>
<tr>
  <th>Column A</th>
  <th>Column B</th>
</tr>
</thead>
<tbody>
<tr>
  <td>fake data</td>
  <td>more fake data</td>
</tr>
<tr>
  <td>xyzzy</td>
  <td>plugh</td>
</tr>
</tbody>
</table>

CSS

div.dataTables_wrapper input,
div.dataTables_wrapper select {
  color: white;
}

JavaScript

$("#foo").DataTable({
  jqueryUI: true
});