[jQuery] My code is not working getting an error missing )

[jQuery] My code is not working getting an error missing )


Hi Everyone
I have been given this code to add to my effects.js
$(".button").hover(function() {
$(".button").addClass("imgbuttonhover");
$(".button").removeClass("imgbutton");
}, function() {
$(".button").addClass("imgbutton");
$(".button").removeClass("imgbuttonhover");
}
But when i add it to my file i get this error via firefox.
missing ) after argument list
[Break on this error] }\n
Can someone please tell me what i'm missing?
Thank-you.
Jess