Microsoft JScript runtime error: 'jQuery' is undefined


  • I am getting this error on a js file but the refere should be right. The files are in the same folder

    /// <reference path="jquery-1.7.2.js" />


    Sunday, May 13, 2012 9:17 AM


  • This error usually shows up when the reference to the jQuery library is missing. 

    Verify if the file path is correct. One way to check this is by trying to access that file as a URL. For example, if your application URL is http://localhost/myapp check if http://localhost/myapp/jquery-1.7.2.js loads fine.

    M.V.'Anil' Radhakrishna
    Web Development Tips, Tricks & Trivia

    • Marked as answer by marck68 Monday, May 14, 2012 3:35 PM
    Sunday, May 13, 2012 2:02 PM