JSFiddle - React, Tailwind, and code Playground
HTML
<select id="selected2">
<option value="true">true</option>
<option value="false">false</option>
</select>
JavaScript
$(document).ready(function(){
var selectedValue;
$('#selected2').change( function() {
selectedValue = $(this).val();
alert(selectedValue);
});
});
/*
$("#example").dataTable({
"responsive": false,
"processing": selected,
"serverSide": true,
"ajax": "scripts/university.php",
"columns": [
// ID
//null, ........
],
});
*/