Sebuahhobi98

how to show modal (no boostrap) in jquery?

Jan 31st, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. //modal
  2. <div class="modal fade bs-example-modal-sm-1-0" tabindex="-1" role="dialog" aria-hidden="true">
  3. <div class="modal-dialog modal-sm-1">
  4. <div class="modal-content">
  5. <div class="modal-header">
  6. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
  7. <h4 class="modal-title" id="myModalLabel2">Pengingat</h4>
  8. </div>
  9. <div class="modal-body">
  10. Anda akan keluar dalam 3 menit karena tidak menggunakan web!
  11. </div>
  12. <div class="modal-footer">
  13. <button type="button" class="btn btn-default" data-dismiss="modal">Batal</button>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. </div>
  19.  
  20. //pemanggilan dengan button
  21. data-target=".bs-example-modal-sm-1-0
  22.  
  23. //jquery
  24. $('#.bs-example-modal-sm-1-0'); gagal ?
  25. $('#bs-example-modal-sm-1-0'); gagal ?
Add Comment
Please, Sign In to add comment