On my page here: redacted
I'm getting the following error: Uncaught TypeError: Cannot read property 'hide' of null, and the element that's supposed to drop down just stays covering the top of the page (the big white image)
When I delete prototype.js the header image drops down from the top as it's supposed to. My working knowledge of javascript is very basic so I can't see what the issue is.
What would be the easiest solution to this problem, assuming I need both js files?
Thanks!
Edited: redacted URL - the solution used was to add : var $j = jQuery.noConflict(); at the top of the jQuery scripts and replace all instances of $ with $j. Much appreciated.
-
1Please post relevant code here. Many people wont follow links to find what you're talking about.Sterling Archer– Sterling Archer2014年04月29日 05:06:03 +00:00Commented Apr 29, 2014 at 5:06
-
1possible duplicate of Why does including prototype.js break the functioning of jquery bbq?The Alpha– The Alpha2014年04月29日 05:12:47 +00:00Commented Apr 29, 2014 at 5:12
-
noted - will keep in mind in the future. adding the parts i think are relevant to the post. as i'm not sure what the problem is, it's a little tricky to figure out which parts of the code people should be looking at. :)Rayne– Rayne2014年04月29日 05:13:38 +00:00Commented Apr 29, 2014 at 5:13
-
1I did search before posting, I missed that post @WereWolf-TheAlpha. Thanks a lot.Rayne– Rayne2014年04月29日 05:18:44 +00:00Commented Apr 29, 2014 at 5:18
1 Answer 1
before your .ready() function, write jQuery.noConflict();
read more here