jainaman224
jainaman224

Reputation: 70

jquery in javascript is not working

I have included jquery in javascript but it is not working wt to do i hv also included jquery in it

<script type="text/javascript" src="/home/aman/html/book_cricket.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11./jquery.min.js"></script>

Upvotes: 0

Views: 54

Answers (2)

Curious Programmer
Curious Programmer

Reputation: 433

The browser reads the javascript files in the order you place them. Try reversing them to

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11./jquery.min.js"></script>
<script type="text/javascript" src="/home/aman/html/book_cricket.js"></script>

Upvotes: 2

Mo.
Mo.

Reputation: 27445

jQuery should run at the beginning

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11./jquery.min.js"></script>
<script type="text/javascript" src="/home/aman/html/book_cricket.js"></script>

Upvotes: 2

Related Questions