I’m trying to set a background for a div using jQuery:
$(".cover").css("background", "yellow");
However I keep getting:
Uncaught TypeError: Cannot call method ‘css’ of null
Also tried with adding an id instead of a class:
$("cover").css("background", "yellow");
but then it says:
Uncaught TypeError: Object # has no method ‘css’
Source code: http://pastebin.com/FEVwL8iq
Edit: I can see you’re using Mootools on the page as well.
Mootools has probably assigned it self to $. Try changing the expression to this:
jQuery(".cover").css("background", "yellow");