简体   繁体   中英

Whats wrong with my site's code?

I may be a bit burned out, but is there something wrong with where I put the code on my site?

Live on my site, not working at all http://japaneselanguagefriend.com/apptest.html

Here it is on JSfiddle working just fine. http://jsfiddle.net/adeneo/PT523/3/

Thanks to Adeneo for helping with this code!

You're not including jQuery in your test page. The console says

Uncaught ReferenceError: $ is not defined

And you aren't including jquery.js either from a CDN or locally in your code.

Include

http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js

in your page, or host your own copy locally. Using a CDN is recommended as a cached copy may already be available on the client, which speeds up page load times.

Always have your browser's error console open when testing and debugging JavaScript. You will catch and fix most if not all syntactical or technical errors with it open.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM