Question: uncaught referenceerror $ is not defined how to fix?
Answer: Include jQuery script file in the code before including any scripts or files that refer jQuery. We may have multiple script files being called in the code. ... 
Check internet availability. ... 
Correct the path from which the jQuery script is loaded.