How to open a Bootstrap modal window using jQuery?

后端 未结 15 2211
闹比i
闹比i 2020-11-22 06:46

I\'m using Twitter Bootstrap modal window functionality. When someone clicks submit on my form, I want to show the modal window upon clicking the \"submit button\" in the fo

15条回答
  •  Happy的楠姐
    2020-11-22 07:36

    Here is how to load bootstrap alert as soon as the document is ready. It is very easy just add

     $(document).ready(function(){
       $("#myModal").modal();
    });
    

    I made a demo on W3Schools.

    
    
    
      Bootstrap Example
      
      
      
      
      
    
    
    
    

    Here is how to load a bootstrap modal as soon as the document is ready

提交回复
热议问题