The following code is having some problem with the jQuery.
Use the word jQuery
instead of $
and pass it a $
reference
jQuery(function($) {
// you can use $ here
$(window).load(function() {
..
});
});
hey: Use jQuery
with a capital Q
instead of $ to make it work. Wordpress usually includes a script which calls jQuery.noConflict()
at the end, leaving $ undefined.
Okies if someone don't like this answer comment before downvote please :)
jQuery(function($) { //jQuery passed in as first param, so you can use $ inside
// use $
});