How to open a Bootstrap modal window using jQuery?

后端 未结 15 1903
闹比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条回答
  •  失恋的感觉
    2020-11-22 07:45

    Check out the complete solution here:

    http://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_ref_js_modal_show&stacked=h

    Make sure to put libraries in required order to get result:

    1- First bootstrap.min.css 2- jquery.min.js 3- bootstrap.min.js

    (In other words jquery.min.js must be call before bootstrap.min.js)

        
    
     
    
     
    

提交回复
热议问题