Simple js file for modal content customization. By - Arifur Rahman
Bootstrap CSS , Jquery Library
Bootstrap Modal customizer installation is very easy and simple . After downloading .zip archive file extract it into your project folder.
<script src="js/bootstrap-modal.min.js"></script> <script> $('.button-1').click(function(){ $.fn.Modal({ 'body': ' please refresh', 'closeButton' : false }); }); </script>Change modal size by changing size parameter . Available size are small , medium and large
$.fn.Modal({ 'body': 'Body text', 'size' : 'medium' });
$.fn.Modal({ 'body': 'Body text', 'size' : 'small' });
$.fn.Modal({ 'body': 'Body text', 'size' : 'large' });
Change modal size by changing size parameter . Available size are small , medium and large
$.fn.Modal({ 'body': 'Modal content body text', 'size' : 'medium' });
Ajax content load and set to modal content
Modal Heading text change .
$.fn.Modal({ 'body': 'Modal content body text', 'heading' : 'Hello this is modal heading title', 'size' : 'medium' });
Modal Close button show / hide by changing true / false . By deafult it is true ,
$.fn.Modal({ 'body': 'Modal content body text', 'heading' : 'Hello this is modal heading title', 'size' : 'medium' , 'closeButton' : false });
Modal backdrop control by changing backdrop option
$.fn.Modal({ 'body': 'Modal content body text', 'heading' : 'Hello this is modal heading title', 'size' : 'medium' , 'closeButton' : false , 'backdrop' : 'static' });