Я очень запутался, почему моя функция AJAX работает только в Chrome, но не в других браузерах.
Я использую Wordpress. Я получаю предупреждение "функция вызвана", но запрос AJAX не работает, он ничего не показывает в консоли.
function get_calendar_id() {
//alert("Function is Called");
var data = {
'action': 'get_cal_ids',
'days': dates,
'price': price,
'stay': days
};
jQuery.post(ajax_object.ajax_url, data, function(response) {
alert(response);
document.getElementById("wpp_search_element_7898").value = response;
document.getElementById("prop_search").submit();
Console.log('Got this from the server: ', response);
});
}