Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Programming»JavaScript»ReferenceError: $ is not defined – JavaScript

    ReferenceError: $ is not defined – JavaScript

    By 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.

    Advertisement

    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

    Related Posts

    JavaScript Techniques for Determining Past Dates

    Mastering Variables and Data Types in JavaScript: A Comprehensive Guide

    Mastering Functions in JavaScript: Essential Concepts and Techniques for Efficient Code

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • A Comprehensive Look at the Simple Mail Transfer Protocol (SMTP)
    • Understanding Basic Git Workflow: Add, Commit, Push
    • The Difference Between Git Reset –soft, –mixed, and –hard
    • Understanding the Staging Area in Git’s Workflow
    • Python Function with Parameters, Return and Data Types
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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