Hi.
I need a small function for jQuery that would close multiple DIV elements, but I'm having trouble with JS syntax.
I got this far:
function closePanels{
$("#servicesPanel").hide("fast");
$("#portfolioPanel").hide("fast");
$("#contactPanel").hide("fast");
$("#aboutPanel").hide("fast");
};
Sounds logical to me: That way I want to call the function from various points in the DOM. Where do I get it wrong? How do I write this function so it'll work?
Thank you.