I use AJAX to send some data to PHP for putting into MySQL after doing that, I want AJAX to do something like running another AJAX for me... I can put data into MySQL... but I can't do other AJAX or anything else like alert something or refresh the page...
here is JavaScript code
$.ajax({
    url: '/myFirstUrl',
    data: {data1: data1, data2: data2},
    type: 'post',
    dataType: 'json',
    success: function () {
then
alert('inserted');
Or
$.ajax({
    url: '/secondUrl',
    data: {data1: data1, data2: data2},
    type: 'post',
    dataType: 'json',
    success: function () {
}
Or
location.reload();
}
 });
 
     
    