title: execute a function after fadeOut() done in an another function
body: <p>I am creating a page where I have created two functions: one is for fadeOut-fadeIn and another is for changing the view of layouts.</p>
  
  <p>I want to change the view only when the fadeOut-fadeIn function is done.</p>
  
  <pre><code>$someTarget.click(function(){
  //all actions here once the below function done
  });
  
  $someTarget2.click(function(){
      $subtarget.fadeOut();
      $subtarget.fadeIn();
  });
  </code></pre>