Coding⏱️ 2 min read📅 2026-05-30

How to Fix: Uncaught ReferenceError: $ is not defined

The issue is likely due to the removal of jQuery from the project or a change in the project's configuration. Check if jQuery is still included in the project and ensure it is properly loaded before the code that uses it.

Quick Answer: Check if jQuery is still included in the project and ensure it is properly loaded before the code that uses it.

To fix the 'Uncaught ReferenceError: $ is not defined' issue, you need to ensure that jQuery is properly included in your HTML file before using its dollar sign alias. Here's how you can do it:

🛠️ Step-by-Step Verified Fixes

Method 1: Include jQuery Script Tag

  1. Step 1: Add the following script tag to your HTML head section, right before closing the tag:

Method 2: Include jQuery Library via CDN

  1. Step 1: Replace your existing jQuery script tag with the following one, which includes the jQuery library from a content delivery network (CDN):

✨ Wrapping Up

By following these steps, you should be able to fix the 'Uncaught ReferenceError: $ is not defined' issue and get your tabs working again.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions