title: jQuery not working in external JavaScript
body: <p>I am new to jQuery and am stuck at some strange issue. I am using jQuery's <code>change</code> and <code>click</code> methods. They are working fine when used in my HTML file in the <code>&lt;script&gt;</code> tag.</p>
  
  <p>Like:</p>
  
  <pre><code>&lt;script&gt;
      $("select,input").change(function ()
      {
          // My code and some alerts
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>When I copied the same in external JavaScript code without <code>&lt;script&gt;</code> and imported that in my HTML it was not at all working.</p>
  
  <p>Are there any changes which are needed to use jQuery in external JavaScript code?</p>
  
  <p>PS: Some other non-jQuery functions present in same external JavaScript code are successfully called from HTML.</p>