Mike Thunder
Mike Thunder

Reputation: 449

JQuery and Javascript doesn't work in my project, but on web does

I reused a code that I saw on StackOverFlow with my data : http://jsfiddle.net/ctx3H/91/ , but when I'm importing him in Visual Studio 10 the buttons doesn't work. I include in the head the following declaration:

<link href="../../../../Content/Areas.css" rel="stylesheet" type="text/css" />
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/base/jquery-ui.css"
    rel="stylesheet" type="text/css" />

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"
    type="text/javascript"></script>
<script src="../../../../Scripts/jquery-1.6.2.js" type="text/javascript"></script>

Basically my page contains this declaration + from that site [Javascript code + HTML] What I'm doing wrong? Thanks in advance

Upvotes: 1

Views: 255

Answers (2)

S..
S..

Reputation: 5758

alert(jQuery);

will test if jQuery's been loaded successfully.

Upvotes: 0

wirey00
wirey00

Reputation: 33661

reverse

<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js"
    type="text/javascript"></script>
<script src="../../../../Scripts/jquery-1.6.2.js" type="text/javascript"></script>

Always import jQuery package before dependant packages like jQueryUI

Upvotes: 10

Related Questions