jQuery fadeIn and fadeOut - swapping divs
I'm new to jQuery and javascript in general but am plugging my way through thanks to sites like these. I have a page with six hidden divs that are called with corresponding links with individual ids. When each div is made visable (.fadeIn), the currently displayed div is hidden (.fadeOut). It all works fine but my code seems to be really long and ungainly. Is there an easier, shorter, less code-intensive way to perform the same task please? Here is my js: Many thanks in advance. Mike $(document).ready(function(){ $("#link1").click(function() { $("#panel2").fadeOut("slow", function() { $("