user430546
user430546

Reputation: 65

'jQuery' is undefined Jquery jquery-ui-dialog

I am using jQuery.ui.dialog.js to show the modal pop up.. But this Jquery.ui.dialog.js is throwing a javascript error 'jQuery' is undefined. Please help . How can i resolve this. I am using this two .css and .js

1.jquery.ui.dialog.css & 1.jquery.ui.dialog.js 2.jquery-ui-1.8.2.custom.css & query-ui-1.8.2.custom.js

Please advice.

Upvotes: 1

Views: 6920

Answers (3)

TimS
TimS

Reputation: 6052

Have you ensured that your tag for jQuery comes before the same for jQuery UI?

Beginners guide is here:

http://learn.jquery.com/jquery-ui/getting-started

Upvotes: 4

Nick Craver
Nick Craver

Reputation: 630429

You need to include the jQuery library itself to use jQuery UI, make sure to download and include that script as well from the jquery.com download section (also make sure it's beofre all other jQuery dependencies, plugins, UI, etc).

Or, include it from a CDN like this:

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

Upvotes: 0

Matt
Matt

Reputation: 1005

Make sure you have included the jquery-1.4.2.js file in your HTML.

Upvotes: 0

Related Questions