title: javascript don't see function
body: <p>I have a function in file.<br />
  <code>&lt;script type="text/javascript" src="domain.com/js/script.js"&gt;&lt;/script&gt;</code></p>
  
  <p>This is just script from head:<br /></p>
  
  <pre><code>$(function($){
     function testFunc(obj) {
        obj.hide();
     }
  });
  </code></pre>
  
  <p>In index.php:<br />
  <code>&lt;li onclick="testFunc(this)"&gt;text&lt;/li&gt;</code></p>
  
  <p>And nothing change, browser (Chrome) said:
  <code>Uncaught ReferenceError: testFuncis not defined</code></p>