The html:
<div id="videos">
<a href="javascript:loadAndPlayVideo('QXoIMTjk9Xg')"><img src="http://i.ytimg.com/vi/QXoIMTjk9Xg/default.jpg" id="thumb_QXoIMTjk9Xg"></a>
<a href="javascript:loadAndPlayVideo('nWubfMkDfVs')"><img src="http://i.ytimg.com/vi/nWubfMkDfVs/default.jpg" id="thumb_nWubfMkDfVs"></a>
<a href="javascript:loadAndPlayVideo('S3WDKXq36WI')"><img src="http://i.ytimg.com/vi/S3WDKXq36WI/default.jpg" id="thumb_S3WDKXq36WI"></a>
<a href="javascript:loadAndPlayVideo('sGrfLQVVI8A')"><img src="http://i.ytimg.com/vi/sGrfLQVVI8A/default.jpg" id="thumb_sGrfLQVVI8A"></a>
</div>
The problem: We have the id 'nWubfMkDfVs' and we need to know the next ID in order to get playlist functionality.
*Note: it's without the thumb_, the thumb_ is because I use the id nWubfMkDfVs in another div and want to avoid double Id's*
Question 1: How to make a selector that gives us S3WDKXq36WI as response when using nWubfMkDfVs?
Question 2: How to make a selector that gives us QXoIMTjk9Xg as response when using sGrfLQVVI8A?
I tried a lot of selectors but they all failed, I'm very curious in how you will solve this problem!