I am looking to read the rel value of an anchor and append it to a div when clicking on a link that loads in a video from Youtube into my player. A quick code dump is below. When a link is clicked, the rel value should append to the video-caption div. Thanks!
<div class="video">
<a onclick="player('http://www.youtube.com/v/ylJOn4dEKo0')" href="javascript:void(0);" rel="This is video one.">Video 1</a>
</div>
<div class="video">
<a onclick="player('http://www.youtube.com/v/gXRbiqm-HJA')" href="javascript:void(0);" rel="This is video two.">Video 2</a>
</div>
<div id="video-container">Video plays here</div>
<div class="video-caption">Video caption appended here</div>
</div>