I continue to work on elements related to other elements, but my methods see a little lover!
those. to
// <div> <div> <div> <ul> matched item where script is called from </ul> </div> </div> <a class="postMore">LINK</a> </div>
i use;
$(this).parent('div').parent('div').parent('div').children('a.postMore').css('display','block');
which seems a little bulky. Is there a better way to handle relative elements?
source
share