👍:0
You’ve sent GET
form data, but you set the conditional using POST
, modify your ajax param to send POST
data :
$.ajax({
url: "data.php",
async: false,
dataType: 'json',
type: "POST",
data:{
is_date_search:is_date_search, datetimepicker:datetimepicker
},