views:

55

answers:

3

I am using jQuery.ui.dialog.js to show the modal pop up.. But this Jquery.ui.dialog.js is throwing a jaascript error 'jQuery' is undefined. Please help . How can i resolve this. I am using this 2 .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.......

+1  A: 

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

Beginners guide is here:

http://jqueryui.com/docs/Getting_Started

TimS
A: 

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

Matt
A: 

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"&gt;&lt;/script&gt;
Nick Craver