Mulith
asked on
JQuery snippet no longer works on new server.
Hi All,
My knowledge of Jquery and javascript is not all that great but just moved my site to a new server and for some reason this code no longer hides the element on pageload:
Not sure what would cause this to happen but any element given the "hide_on_start" class should be hidden when the page is first loaded.
Any ideas why this has happened?
My knowledge of Jquery and javascript is not all that great but just moved my site to a new server and for some reason this code no longer hides the element on pageload:
Event.observe(window, 'load', function() {
$$('.hide_on_start').each(function(node) {
node.hide();
});
Not sure what would cause this to happen but any element given the "hide_on_start" class should be hidden when the page is first loaded.
Any ideas why this has happened?
$('.hide_on_start').
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Ahh yes thank you maeltar, got "Ajax not defined" error which then made me realize that I'd commented out prototip and scriptaculous reference.