Better way to write this ?

Posted by atif089 on Stack Overflow See other posts from Stack Overflow or by atif089
Published on 2010-03-27T16:16:36Z Indexed on 2010/03/27 16:23 UTC
Read the original article Hit count: 136

Filed under:

any better way to write this ?

$(this).parent().parent().find(" dd ul").toggle();


update..

I am trying to create a dropdown using the script here http://www.jankoatwarpspeed.com/post/2009/07/28/reinventing-drop-down-with-css-jquery.aspx

however the script works only for one instance of list and my code works good for multiple instances. Just curious if there is another better way to get parent of a parent in jQuery

© Stack Overflow or respective owner

Related posts about jQuery