'AJAX Sending empty strings but in console I see them
I have some problem, seems like I can't solve it...
I have code
$(document).on("click","#location-routes .fa-floppy-disk",function(){
let route = [];
let job = $(this).closest('.row').attr('job');
$(this).closest('.row').find('input').each(function () {
route[$(this).attr('name')] = $(this).val();
});
route['location'] = alias;
$.ajax( {
type: "POST",
url: "white.php",
data: {job: job, info: JSON.stringify(route)},
dataType: "json",
success: function( data ) {
console.log(data);
}
});
console.log(route);
});
In console, I see what should be, but ajax is sending empty query.
I also use jquery ui autocomplete, and google map api at this page. Please, help me to fix it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
