Link to home
Start Free TrialLog 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
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.