简体   繁体   English

更改弹出消息

[英]change pop up message

How can I change the popup message to have ok and cancel buttons? 如何更改弹出消息以确定并取消按钮? Here is a link to my current code: 这是我当前代码的链接:

http://jsfiddle.net/Ck4Fr/ http://jsfiddle.net/Ck4Fr/

Here's an EXAMPLE . 这是一个例子

From the OP, I don't see anywhere that has an alert message or another type of pop-up, but if you are in fact using an alert for your pop-up you can change it to confirm instead. 在OP中,我没有看到任何有alert消息或其他类型的弹出窗口,但如果您实际上正在为弹出窗口使用alert ,则可以将其更改为confirm

Example: 例:

alert("There is an error!");

vs VS

confirm("Continue anyway?");

Well, you can use alert or confirm dialog. 那么,您可以使用alertconfirm对话框。

If you want to use customized popup then use Jquery UI Dialog 如果要使用自定义弹出窗口,请使用Jquery UI对话框

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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