data-playlist
attribute of your elements.
<a class="youtube" href="#" data-playlist="4eYSpIz2FjU,gzKAut3sVrw,vlIm-riMN6Q">Link title</a>
<button>
element with comma separated YouTube id playlist in data-playlist
attribute:
<button class="youtube" data-playlist="4eYSpIz2FjU,gzKAut3sVrw,vlIm-riMN6Q">Click me</button>
<img>
element with comma separated YouTube id playlist in data-playlist
attribute:
<img class="youtube" data-playlist="4eYSpIz2FjU,gzKAut3sVrw,vlIm-riMN6Q" src="..." />
<script type="text/javascript"> $(function () { $(".youtube").YouTubePlaylistModal({autoplay:0, width:640, height:480}); }); </script>