I have a webpage of >20MB (too big) and the problem is that the youtube videos are ~500 KB each! I want to use an HTML5 select option to list 30+ videos. The value is the youtube video ID. User then selects from the dropdown options the desired video. Then the video loads in the iframe.
<form>
<select id="dynamic_select">
<option value="" selected>Pick a Key and Peele youtube video</option>
<option value="pSDTmJtE-Bc">Little Homie</option>
<option value="Dd7FixvoKBw">Substitute Teacher</option>
<option value="iGAMbNKcN1U">Fronthand Backhand</option>
</select>
</form>
This is the working "template" but I want to replace the "nlD9JYP8u5E" in the src string with the selected option value. Can this be done?
<article>
<iframe src="https://www.youtube.com/embed/nlD9JYP8u5E?rel=0&showinfo=0"></iframe>
</article>