Youtube Video Open In Bootstrap 3 Modal With – YTModal

Demo    Download
Youtube Video Modal with jQuery and Bootstrap 3 - YTModal
File Size: 64.16 KB
Views Total: 79 views
Last Update:September 29, 2020
Publish Date: September 29, 2020
Official Website: Go to website
License: MIT

YouTube Modal/popup a light weight plugin in jQuery with fully customize. It also requires jQuery YouTubeDefaultImageLoader.js to insert YouTube video iframes with post images into your web page. If you need to enter on the same page several YouTube videos and do not want that to penalize the loading time of it, you can load them with this method, which first loads only the default images for each video and then load the video in a bootstrap modal using the iframe_api provided by YouTube.

How to use it:

1. Include Bootstrap 3 framework and jQuery JavaScript library loaded:

<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="/jquery-1.11.3.min.js"></script>
<script src="js/bootstrap.min.js"></script>

2. Load the jQuery YouTubeDefaultImageLoader.js

<link rel="stylesheet" href="css/YouTubeDefaultImageLoader.css">
<script src="js/YouTubeDefaultImageLoader.js"></script>

3. Embed an Youtube video into your document as follow.You can use the DIV’s IDattribute to specify the ID of Youtube video you want to embed.

<div id="y73mJZdMEcw"



Mady Schaferhoff is an expert jQuery script at jQuerypost. He offers web development services to clients globally. He also loves sharing Html,CSS, jQuery knowledge through blog posts like this one.

Related jQuery Plugins