Play Youtube video from external button

Make a Youtube video start from an HTML button.

BUTTON CODE – STRIP HREF AND PUT ID

<a id="play-button">Click here to view video</a>

IFRAME CODE – PUT ID

<iframe frameborder="0" allowfullscreen="" src="video-url" id="video"></iframe>

MAIN SCRIPT

<script type="text/javascript">
	$('#play-button').on('click', function(ev) {
	$("#video")[0].src += "&amp;autoplay=1";
	ev.preventDefault();
	});
</script>