Answers for "modal on window load"

2

bootstrap show modal on page load

<script type="text/javascript">
    $(window).on('load',function(){
        $('#myModal').modal('show');
    });
</script>
Posted by: Guest on September-28-2020
4

call function on modal open

$('#myModal').on('shown.bs.modal', function (e) {
  // do something...
})
Posted by: Guest on June-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language