jquery - Bootstrap modal won't show over video element -


i'm trying modal box show on clicking "share" link. following documentation, should work. appears may showing behind video element, changing z-index hasn't helped.

here's jsfiddle: http://jsfiddle.net/t5clh1wn/

<div class="container"> <div class="row">     <div class="col-md-4 about">about</div>     <div class="col-md-4 logo"></div>     <div class="col-md-4 share"><a href="#mymodal1" role="button" class="btn" data-toggle="modal">share</a>     </div> </div> <div class="row">     <div id="video">         <video controls autoplay="autoplay" poster="video/trailer.jpg" width="1000" onclick="if(/android/.test(navigator.useragent))this.play();">             <source src="video.mp4" type="video/mp4" />             <source src="video/trailer.webm" type="video/webm" />             <source src="video/trailer.ogv" type="video/ogg" />             <embed src="video/flashfox.swf" width="600" height="480" flashvars="autoplay=true&amp;controls=true&amp;loop=true&amp;src=trailer.mp4" allowfullscreen="true" wmode="transparent" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_en" />     </div> </div> <div id="mymodal1" class="modal hide" tabindex="-1" role="dialog">     <div class="modal-header">         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>          <h3>sharing options</h3>      </div>     <div class="modal-body">sharing options</div>     <div class="modal-footer">         <button class="btn" data-dismiss="modal" aria-hidden="true">close</button>     </div> </div> 

css

body{   background-color: #000;   color: #fff;   font-family: arial; } /*center video player*/ #video{   text-align: center; } .about{   float: left;   padding-left: 80px;   font-family: knowledge;   border-style: none; } .share{   float: left;   padding-left: 300px;   font-family: knowledge;   border-style: none; }  .logo{   background-image: url('image.png');   background-repeat: no-repeat;   width: 350px;   height: 130px;   border-style: none; } 

you need remove hide modal div. keeping hidden @ times. not need use that, hides default on own.

updated jsfiddle

<div id="mymodal1" class="modal" tabindex="-1" role="dialog"> 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

jquery - Keeping Kendo Datepicker in min/max range -