Hi
I'm trying to load a custom jQuery script from one of my templates. Heres my code.
Company.js
(function($) {
$(document).ready(function() {
alert('jQuery is loaded!');
})
})(jQuery);
In the ss-file I have:
<% require javascript(mysite/javascript/Company.js) %>
The script is loaded, but it does not execute the alert. Do i need to include the jQuery library or something? I diden't find anything in the docs (http://doc.silverstripe.org/2.4:javascript)
I'm using SS 2.4 rc2.
Thanks a lot
Chris