开发者

jQuery UI included, not understanding why it is failing

开发者 https://www.devze.com 2023-03-20 06:08 出处:网络
http://churchsafeplan.com/overview.php?content=0201#intro For some strange, strange reason, the function \"accordian\" is not working.Seems as if accordian does not exist, though the jQuery UI file i

http://churchsafeplan.com/overview.php?content=0201#intro

For some strange, strange reason, the function "accordian" is not working. Seems as if accordian does not exist, though the jQuery UI file is being called. It doesn't make sense to me, and it feels like I am wasting time so if 开发者_开发问答anyone could help, it would be MUCH appreciated.

The javascript is on the bottom btw.

Figured out the problem was actually a typo. Normally jQuery doesn't break when the HTML doesn't fit, but in this case it was breaking because the HTML didn't fit. Which I think is rather weird.


jQuery UI is being downloaded - I can see it in Firebug.

I can also see that your accordion call is commented out:

//$("#accordion").accordion();

Plus, no elements match the selector #accordion, I think you mean #accordian.

Fix the typo and uncomment the line and it works.


How is it not working? What is the expected behavior? I just see a long form. When I put your commented out accordion code $("#accordion").accordion(); into the javascript console, it runs but matches nothing. More info would be helpful.


Install Firebug, a script debugging extension for Firefox. Use it to see where the issues are popping up. It also includes a console window that will let you see if objects are defined or not at a certain point in your code.

http://www.getfirebug.com


You have commented out the accordion initialization

//$("#accordion").accordion();
0

精彩评论

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