แจก Modal Example By fordev22
แจก Code Modal Example By fordev22
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
<!DOCTYPE html> <html lang="en"> <head> <title>fordev22.com</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.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Modal Example</h2> <!-- Trigger the modal with a button fordev22.com--> <button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button> <!-- Modal fordev22.com--> <div class="modal fade" id="myModal" role="dialog"> <div class="modal-dialog"> <!-- Modal content fordev22.com--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Modal Header</h4> </div> <div class="modal-body"> <p>Some text in the modal.</p> <form action="" method="POST"> <div class="form-group"> <label for="exampleInputEmail1">Name</label> <input type="text" class="form-control" name="name" id="" placeholder=""> </div> <div class="form-group"> <label for="exampleInputEmail1">Surname</label> <input type="text" class="form-control" name="surname" id="" placeholder=""> </div> <div class="form-group"> <label for="exampleInputEmail1">Tel</label> <input type="text" class="form-control" name="tel" id="" placeholder=""> </div> <div class="form-group"> <label for="exampleInputEmail1">Username</label> <input type="text" class="form-control" name="username" id="" placeholder=""> </div> <div class="form-group"> <label for="exampleInputPassword1">Password</label> <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="Password"> </div> <div class="checkbox"> <label> <input type="checkbox"> Check me out </label> </div> <button type="submit" class="btn btn-default">Submit</button> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> </body> </html> |