How do I get external jquery scripts working??
-
Ok, so Ive tried using a number of jquery plugins (NON wordpress plugins) like table sorter, jquery tools, and greybox ect and I cant get any of them to work.
Firefox’s error console keeps giving me stuff like:
Error: jQuery(“.myTable”).tablesorter is not a function
Here is my code
<?php wp_head(); ?> <script type="text/javascript" src="<?php get_bloginfo('stylesheet_directory'); ?>/table.js"></script> <script type="text/javascript"> jQuery(document).ready(function() { jQuery(".myTable").tablesorter(); } ); </script>So is WP not seeing me link to the js file?
oh and
jQuery(document).ready(function($) { $(".myTable").tablesorter(); } );doesnt work either! ARRRG I jsut want to use my own jquery plugins!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘How do I get external jquery scripts working??’ is closed to new replies.