[jQuery] Re: beginner question on show/hide and reusing functions

2008-05-08 Thread illtron
Thank you! That's *exactly* the sort of thing I had in mind, and *exactly* how I thought it might work (I just didn't know exactly how to do it myself). Great commenting too; it'll really help me learn! On May 8, 5:24 am, Wizzud <[EMAIL PROTECTED]> wrote: > Something like this?... > > $(document)

[jQuery] Re: beginner question on show/hide and reusing functions

2008-05-08 Thread Wizzud
Something like this?... $(document).ready(function() { var sp = $('.searchpanel').hide() //hide boxes initially , so = $('#searchoptions') , anim = false //prevents fast clicking of second option ; // shows all $('a.showall', sp).click(function() { anim = true; //hide th