$('#selectTerritory').change(function(){ var selectTerritory= $(this).val(); $.ajax({ type : "POST", url: "registration.php", // beforesend:(presend()), data: {Territory:selectTerritory}, success: function (data) { $('#detale_sitis').html(data); } }); }); $('body').on('change', '#selectRayons',function () { var selectRayons = $(this).val(); $.ajax({ type: "POST", url: "registration.php", // beforesend:(presend()), data: {Rayons: selectRayons}, success: function (data) { $('#detale').html(data); } }); }); Such a problem: there is data received by the Ajax request. How to save and use them in a settled Ajax request?
Thank.