wait for completed

wait for completed

Hi,

how to run the second function only when the first will be completed in?

  1. $(document).ready(function() {
     $
    ("#first").load("first.php?id="+ Math.random());
     $
    ("#second").load("second.php?id="+ Math.random());
    });