user727251
user727251

Reputation: 1

JavaScript file cannot find a variable

I am getting an error at hasAttr.js saying that it cannot find the variable :jQuery.

Please help me.

I am new to working on the client side.

Upvotes: 0

Views: 82

Answers (2)

Ravi Gadag
Ravi Gadag

Reputation: 15861

use google CDN Jquery Libray , use this in your head element

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript>

Upvotes: 0

Justin Pihony
Justin Pihony

Reputation: 67115

My guess without any other code is that you are not including the jquery library

Upvotes: 2

Related Questions