ReferenceError: $ is not defined

Updated at 28-Sep-2021, By samar

ReferenceError: $ is not defined

Hello everyone, in this post we will look at how to solve "ReferenceError: $ is not defined" in programming.

ReferenceError: $ is not defined is the most common error found while running javascript code when you use $ in script without including the jQuery library. Use jQuery CDN to file to avoid the error.
  • Jquery-3.6.0.min.js CDN link

    <script src="" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>

    This is the minified jQuery CDN link with version 3.6.0.

Back to code snippet queries related javascript