What I need is to modify this script so that it takes the value of a time input from which I must take the time and validate it with mysql and show the user a div that says it is available or that the time is not available selected
$(document).ready(function(){
$.datepicker.setDefaults({
dateFormat: 'dd-mm-yy'
});
$(function(){
$("#fechax").datepicker("");
});
$('#filter').click(function(){
var fecha = $('#fechax').val();
if(fecha != '')
{
$.ajax({
url:"ajax_ac.php",
method:"POST",
data:{fecha:fecha},
success:function(data)
{
$('#order_table').html(data);
}
});
}
else
{
alert("Selecciona una fecha");
}
});
});