How to get twitter bootstrap modal to close (after initial launch)

前端 未结 10 908
半阙折子戏
半阙折子戏 2020-12-24 04:13

I\'m very much a noob, so I think I\'m overseeing something (probably obvious) with twitter bootstrap modal. What I am trying to do is get a modal to launch only on mobile.

10条回答
  •  [愿得一人]
    2020-12-24 04:45

    If you have few modal shown simultaneously you can specify target modal for in-modal button with attributes data-toggle and data-target:

    
    

    Somewhere outside the modal code you can have another toggle button:

    Resend Message
    

    User can't click in-modal toggle button while these button hidden and it correct works with option "modal" for attribute data-toggle. This scheme works automagicaly!

提交回复
热议问题