using jquery.noConflict()
<p>I have two files. HTML and .js files. in code.js, I have written jquery code and in HTML file, I am including code.js as following:</p>

<pre><code>&lt;script src="jquery-1.4.2.js"&gt;&lt;/script&gt;
&lt;script src="jquery.interval.js"&gt;&lt;/script&gt;
&lt;script src="code.js"&gt;
jQuery.noConflict();
var $jcode = jQuery;
&lt;/script&gt;
</code></pre>

<p>in code.js, I have written following:</p>

<pre><code>jcode(document).ready(function() {
     jcode.interval(checkForms, 2000); 
});
</code></pre>

<p>When I run it, it gives me error as can not read property of interval undefined.
I think there is something wrong with my usage of noConflict. Can you please help?</p>

<p>Thanks</p>
