title: How to call a function inside $(document).ready
body: <p>Im trying to debug my web app that uses <code>jQuery.</code></p>
  
  <p>In firebug im calling functions inside the $(document).ready..</p>
  
  <pre><code> function val() { console.log('validated outside doc.ready'); }
   $(document).ready(function()
   {
  
      console.log('document ready...');
  
      function validate() { console.log('validated!'); }
   }
  </code></pre>
  
  <p>In firebug console I type <code>validate()</code> and it says its not a function</p>
  
  <p>If i type <code>val()</code> it works fine.</p>
  
  <p>How do i call validate from the console ?</p>