简体   繁体   中英

jQuery ColorBox confirm override modal dialog?

How would I use ColorBox to create a 'confirm override' modal dialog that can interupt a form submission until 'yes' is clicked.

Simple Modal has a similar function , but I much prefer colorbox's implementation and documentation, otherwise I'd use the latter.

You can use overlayClose property to false to make disable closing when you click outside the colorbox div and by setting closebutton property to false will hide close button . That is how you can make colorbox div as modal.

code : $.colorbox({overlayClose:false,closebutton:false});

我无法使用ColorBox帮助您,但是如果您对SimpleModal有特定疑问或问题,我们将很乐意为您提供帮助。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM