On Feb 13, 10:47 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> On Feb 13, 2007, at 11:22 AM, R. Rajesh Jeba Anbiah wrote:
>
> > For #1, what about:
> > $(document).ready(function() {
> >    $("#wrapper p").hide(); //hide initially
> >    $("#wrapper h2").click (function() {
> >            $("p", $(this).parent()).slideToggle("slow");
> >    });
> > });
>
> Looks good to me. Also, instead of this...
>
> > $("p", $(this).parent()).slideToggle("slow");
>
> ...you could do this:
>        $(this).siblings('p').slideToggle('slow');
   <snip>

   Oh cool, thanks for pointing it.

--
  <?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com    Blog: http://rajeshanbiah.blogspot.com/


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to