[jQuery] adressing relatively from $(this) - jquery beginner!
hi I was trying to adress relatively from this.
example...
<a class="mylink">
<div class"div01"></div>
<div class"div02"></div>
<div class"div03"></div>
</a>
lets say "div02" is visible the other divs are not
I TRIED LIKE THIS, BUT IT DOESNT WORK
$("a.selectlink").click(function(){
$(this).$("div:visible").fadeOut();
});
I want to have all the visible divs in $(this)
I tried $(this).find(":visible") and $(this).children(":visible") but
none worked
How do I get anything specific relative from this ( not just the
"parent()" or "next") )