开发者

jQueryUI dialog (modal form) demo code not working

开发者 https://www.devze.com 2023-02-19 02:36 出处:网络
I\'m extremely new to jQuery, although not new to javascript in general. I\'m trying to use the UI dialog widget. I\'ve downloaded a .min.js file containing the dialog widget and a few others, and alr

I'm extremely new to jQuery, although not new to javascript in general. I'm trying to use the UI dialog widget. I've downloaded a .min.js file containing the dialog widget and a few others, and already have the core .min.js.

I copied the demo code directly from the UI doc for modal form and pasted it into a plain html file. Clicking the button does not work; nothing happens.

Can anyone tell me i开发者_开发问答f there's something else I need to do to use the demo code? And how do I go about debugging this jQuery stuff in Chrome? (I do have FireBug Lite installed; just haven't quite figured out how to use it for jquery.)

I can post pieces of code if anyone can tell me something specific to look for, but the entire html file, simple as it is, is over 100 lines. Here's a link to my sample.


$( "#create-user" ).button is not a function

it is supposed to be

$( "#create-user" ).click(function(){.....


Judging from the .button() call, you forgot to include a reference to jQuery UI.

0

精彩评论

暂无评论...
验证码 换一张
取 消