I’m unable to properly load jquery in my EE2 template. My code is below. If I simply create a function with the same alert and call it through window.onload, it works. Am I not calling my javascript files correctly (I originally used google api’s but that didn’t work either)? Do I have to do something special in EE2 to use the $(document).ready?
[script type="text/javascript" src="{path='includes/jquery.js'}"][/script]
[script type="text/javascript" src="{path='includes/cufon-yui.js'}"][/script]
[script type="text/javascript" src="{path='includes/avenir2.font.js'}"][/script]
[script type="text/javascript"]
$(document).ready(function() {
alert('foobar');
});
[/script]