Last active
August 13, 2019 16:02
-
-
Save Risyandi/253b79540e4fdceb2f17bda098776f7d to your computer and use it in GitHub Desktop.
Jawaban untuk Jawa Barat Digital Services, tentang modal dialog tanpa menggunakan javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
catatan : | |
1. untuk menampilkan modal dialog di bootstrap tanpa menggunakan javascript. bisa menggunakan atribute. | |
<data-toggle="modal" data-target="#dialog"> | |
2. dan untuk menutup kembali dialog dengan menambahkan atribute | |
<data-dismiss="modal"> | |
created by @Risyandi | |
--> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Modal Dialog</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> | |
</head> | |
<body> | |
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#dialog">Open</button> | |
<div class="modal" id="dialog"> | |
<div class="modal-dialog"> | |
<div class="modal-body modal-content"> | |
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button> | |
</div> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment