Can you please let me know how I can use two Ajax call in one script and avoid conflicts? For example, I have a script like this:
<script type="text/javascript">
$(document).ready(function() {
    $.ajax({
         type: 'POST',
         url: 'nearest.php',
         success: function( resp1 ){
          $("#div1").html(resp1);
         }
    });
      $.ajax({
         type: 'POST',
         url: 'closettime.php',
         success: function( resp2 ){
         $("#div2").html(resp2);
         }
    });   
</script>
Can you please let me know how I can use both methods in the script? Thanks.
 
     
     
     
     
    