Reputation: 469
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.
Upvotes: 1
Views: 65
Reputation: 28795
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.
Upvotes: 3
Reputation: 1349
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.
Upvotes: 2
Reputation: 8527
You have commented out the accordion initialization
//$("#accordion").accordion();
Upvotes: 0
Reputation: 9891
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.
Upvotes: 0