"Modal check box"
Bootstrap 3.0.0 Snippet by SHVETA

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <html lang="en"> <head> <title>Product</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.0/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="row"> <p class="text-center"><button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal" >Open Modal</button> <h1 id="value"> <script src="js/popUp.js"></script></h1> </p> </div> <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title">Products choose</h4> </div> <div class="modal-body"> <input type="checkbox" id="maggi" name="first" value="maggi">Maggi <br> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal" onclick="checkbox()">submit</button> </div> </div> </div> </div> </body> </html>
function checkbox() { document.getElementById("value").innerHTML = document .getElementById("maggi").value; }

Related: See More


Questions / Comments: