Link to home
Create AccountLog in
Avatar of Mulith
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:

Event.observe(window, 'load', function() {
		$$('.hide_on_start').each(function(node) {
			node.hide();
		});

Open in new window


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?
Avatar of chaitu chaitu
chaitu chaitu
Flag of India image

$('.hide_on_start').
ASKER CERTIFIED SOLUTION
Avatar of maeltar
maeltar
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Mulith
Mulith

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.