It is a FAQ page but handled a little differently: http://www.safaribydesign.com/faq/
The way I've got it set up right now works ok, but once a visitor starts clicking they can't turn the answers off unless they click the FAQ button in the main menu. That may not be much of a problem but I'd like to know a better way to handle this. thanks. On Nov 25, 8:54 pm, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Are you trying to do something like > this?http://www.commadot.com/jquery/faq.php > > I can think of a few ways to make your code more jQuery-ish. > > Glen > > On Nov 25, 2007 6:00 PM, befidled <[EMAIL PROTECTED]> wrote: > > > > > I've currently got a list where each list element fades in a > > corresponding div when clicked. It's set to toggle so that it will > > fade out the same div when clicked again. I've set it up to also hide > > all divs so that they don't overlap each other. > > > my code is below...my question is, is there a more efficient way to > > achieve the same thing? > > > $('a.question1').toggle(function(){ > > $('div.answer1, div.answer2, div.answer3, > > div.answer4, div.answer5, > > div.answer6').fadeOut(); > > var answers = $('div.answer1'); > > answers.fadeIn(); > > }, function(){ > > $('div.answer1, div.answer2, div.answer3, > > div.answer4, div.answer5, > > div.answer6').fadeOut(); > > var answers = $('div.answer1'); > > answers.fadeIn(); > > });