title: Calling two user defined functions in jquery
body: <p>Hi
  I am trying to call two user defined functions and expecting the first one has to execute first and then the second one.. but they are executing simultaneously.</p>
  
  <pre><code>$.firstfunc = function(){
  //Do something
  //jQuery.ajax({
  });
  
  $.secondfunc = function(){
  //Do something
  jQuery.ajax({
  });
  
  $.(document).ready(function(){
  $.firstfunc();
  $.secondfunc();
  });
  </code></pre>
  
  <p>any help would be appreciated.</p>
  
  <p>Thanks!</p>