I have this code:
<div class="Slideshow homeSlideshow"> <div class="jshowoff jshowoff-1" style="position: relative;"> <ul style="position: relative;"> <li class="Slide" title="Trailer" style="left: auto; right: 0px; top: auto; bottom: auto; position: relative;"> <a target="_blank" href="http://www.youtube.com/watch?v=123456" title="xxx"></a> </li> </ul> <p class="jshowoff-slidelinks jshowoff-1-slidelinks"> <a class="jshowoff-slidelink-0 jshowoff-1-slidelink-0" title="undefined" href="#null" style="width: 30.3333%;"> Trailer </a> </p> </div> </div> And I'm in p class jshowoff-slidelinks. What I need, that on clicking the a inside of this p, I go to the href that's inside the li class slide.
Any idea?
It's like, go to the href to the child of parent, something of that sort.
Thing is, this is part of a slideshow code, and hence the li keeps changing as the slide moves.