title: Call jQuery function from JavaScript
body: <p>I have some jQuery code:</p>
  
  <pre><code>$(function(){ 
  function someFunc(){
      /*do something*/
  };
  .............   
  });
  </code></pre>
  
  <p>And now I want call someFunc from JavaScript like below:</p>
  
  <pre><code>function test(){    
  $.fn.someFunc();
  }
  </code></pre>
  
  <p>But it doesn't work! I've seen an article <a href="https://stackoverflow.com/questions/8533439/how-to-call-function-in-jquery-from-javascript">how to call function in jquery from javascript</a>. Is it possible? </p>