Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)

When I was trying to run the JavaScript/jQuery and gets the following error:

$ is not defined $(function()".

Any help would be appreciated.

1 Answer

0 votes
by (26.7k points)

You can add the below line of code to the top of your file and it will work. The issue is basically, for the file which is not added to the php/jsp file properly.

<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>

I hope this will help.

Want to become a Java Expert? Join Java Training now!!

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Apr 7, 2021 in Java by dante07 (13.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...