Login / Join
Bootstrap PopUp
submitted on 26/09/2017 by
Codicode
+ infos
Config
Embed
Share
Bootstrap PopUp
by
Codicode
Bootstrap PopUp Testing
Framework 1 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
Framework 2 :
-- None --
jQuery 2.0.3
jQuery 1.9.1
jQuery 1.9.0
jQuery 1.8.0
jQuery 1.7.1
jQuery 1.6.3
jQuery UI 1.10.3
MooTools 1.4.5
AngularJS 1.0.4
Prototype 1.7.1.0
Dojo 1.8.3
Chrome Frame 1.0.3
Ext Core 3.1.0
SWFObject 2.2
WebFont Loader 1.1.2
+ Js file(s) :
//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js //maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js
+ Css file(s) :
//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css
Apply
Link :
Direct http link :
Fork button :
Html code :
Embed preview :
Copy the following html code to your page to embed the preview,
To include many previews on a single page, just repeat the first line.
You can change the width, height and border color (bcolor).
<div class="refork-widget" code="3a0" style="width:100%;height:200px;" bcolor="#ccc"></div>
<script type="text/javascript" src="//snippet.run/d/z.js"></script>
HTML
<div class="row"> <div class="col-xs-12 col-md-12"> <table class="table table-condensed table-hover table-bordered"> <thead> <tr> <th>Firstname</th> <th>Lastname</th> </tr> </thead> <tbody> <tr> <td>Johnn</td> <td>Doe</td> </tr> <tr> <td>Sam</td> <td>Smith</td> </tr> </tbody> </table> </div> </div> <div class="modal fade" id="myModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <h4 class="modal-title">EDIT</h4> </div> <div class="modal-body"> <p><input type="text" class="input-sm" id="txtfname"/></p> <p><input type="text" class="input-sm" id="txtlname"/></p> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary">Save changes</button> </div> </div> </div> </div>
CSS
Javascript
$(document).ready(function () { $('table tbody tr').on('click',function(){ $("#myModal").modal("show"); $("#txtfname").val($(this).children()[0].textContent); $("#txtlname").val($(this).children()[1].textContent); }); });
©2013 Copyright snippet.run
Privacy
-
Terms of use
-
About
-
Contact