JQuery Not Working
-
This one’s driving me crazy. I can’t get any JQuery to work on my site. I’m using the noConflict() wrapper but still not even an alert works if I include the minified version of JQuery that comes installed with WP. However, if I reference the latest on Google’s CDN it works fine.
In order to test the bare minimum I’ve moved everything to a super-simplified page. Here’s what it looks like:
HTML:
<html> <head> <title></title> <script type='text/javascript' src='http://localhost/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script> <script type='text/javascript' src='test.js'></script> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <div></div> <input type="button" id="testing" value="click me"> </body> </html>My JS:
JQuery(document).ready(function($) { $('#testing').click(function() { alert('click 1'); }); });Any help here would be most appreciated.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘JQuery Not Working’ is closed to new replies.