bootstrap 4 - Letting the User add text to Display YouTube iframe -
i using bootstrap 4 following code:
<div class="container-fluid bg-3 text-center"> <h3 class="margin">song #3</h3> <div class='embed-container'> <iframe id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed/ypugk0rpeau?autoplay=0&origin=http://example.com" frameborder="0"></iframe> </div>
i user able input video id , display output on webpage. code input box is:
<label for="example-text-input" class="col-2 col-form-label">youtube</label> <div class="col-10"> <input class="form-control" type="text" id="yurl"> </div>
Comments
Post a Comment