title: How to combine multiple jquery functions
body: <p>If you view the jquery code below you will see the famous <strong>$(document).ready(function(){</strong> that starts the script off.  I see this on pretty much all jquery code examples on the net and I am wanting to know, if I am running 5 different code functions in a single file do I need to  use <strong>$(document).ready(function(){</strong> at the beginning of all of them?</p>
  
  <p>If not how would I combine for example this code below into a page 3 times, pretend it is 3 different codes?</p>
  
  <pre><code>&lt;script type="text/javascript" &gt;
   $(document).ready(function(){
    setTimeout(function(){
    $(".flash").fadeOut("slow", function () {
    $(".flash").remove();
        }); }, 2000);
   });
  &lt;/script&gt;
  </code></pre>