On Wed, Jul 15, 2009 at 6:00 PM, Benn<bennmey...@gmail.com> wrote:
>
> Is there a non-structure specific way of finding the next element with
> a given class?

Try this out (Haven't tested, but the find() method is probably what
you are looking for)

$(document).ready(function(){
  $(".link1").click(function(){
    $(this).find(".a1").css({"visibility":"hidden"}); //hides all a1's
but keeps the space
  });
});

-- 
Brett Ritter / SwiftOne
swift...@swiftone.org

Reply via email to