Skip to main content

ReferenceError: $ is not defined

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="https://code.jquery.com/jquery-3.6.0.min.js" 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