Reputation: 11
My accordion isn't working. I checked to make sure I'm sourcing the correct js file along with google's jQuery UI. Can you see what I'm doing wrong?
http://amandapampena.com/anthonys/anthonys_menu
Thanks for your help!
Upvotes: 0
Views: 5493
Reputation: 55740
You need to load jQuery first and then the plugins associated with it..
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript"></script>
Change the order in which you load.. As jQuery UI is built using jQuery , It won;t recognize if the former is loaded after former
Upvotes: 6
Reputation: 21881
You're loading jQuery-Ui before jQuery itself. Change the order to fix the error.
Upvotes: 2