 <p>Try to include the JQuery js before your custom Js file on html: </p> <pre><code>&lt;script src="../../Scripts/jquery-1.8.2.min.js" type="text/javascript" &gt;&lt;/script&gt; &lt;script src="../../Scripts/___your js___ .js" type="text/javascript"&gt;&lt;/script&gt; </code></pre>