Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Programming»JavaScript»ReferenceError: $ is not defined – JavaScript

    ReferenceError: $ is not defined – JavaScript

    RahulBy RahulAugust 19, 20151 Min Read

    While writing a JavaScript program, I faced following error many times. If you are also getting the same error, This article will help you to fix this error.

    ReferenceError: $ is not defined

    Solution 1 :-

    Generally this error found when we forgot to include core jQuery JavaScript file. So make sure you have included jQuery JavaScript in your web page.

    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
    

    Solution 2 :-

    If you already have included jQuery file in your webpage. Now check the sequence of adding JavaScript files in your webpage. Might be you have included some JavaScript files before core jQuery script file. So make sure that code jQuery file is included at top of other JavaScript files.

    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="http://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
    
    javascript jquery js
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Clone Object in JavaScript
    Next Article How To Enable IP Forwarding on Linux

    Related Posts

    What is difference between var, let and const in JavaScript?

    3 Mins Read

    How to Replace String in JavaScript

    Updated:June 13, 20222 Mins Read

    JavaScript Program to Add Two Numbers

    Updated:June 9, 20222 Mins Read

    How to Install ReactJS on Ubuntu 20.04

    3 Mins Read

    Remove First Character from String in JavaScript

    1 Min Read

    10 Useful JavaScript Console Methods

    Updated:June 9, 20223 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.