如何将确认消息框与是否按钮而不是确定取消按钮 [英] How can i put confirm message box with yes no button instead of ok cancel button

查看:119
本文介绍了如何将确认消息框与是否按钮而不是确定取消按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i想要是没有按钮而不是ok取消按钮通过asp.net中的java脚本验证或j查询验证

任何人帮我? br />
如何使用它请举例...

在网络应用程序中.....



提前谢谢

hi
i want to need yes no button instead of ok cancel button through java scripts validation in asp.net or j query validation
Any one help me ??
how can i used it please give examples...
in web application.....

thanks in advance

推荐答案

使用以下代码





Use the below code



' #ButtonId' ).click( function (){
var 确认=确认( 你确定吗?);
如果 (确认== true ){
// 您的确认代码
}
});
('#ButtonId').click(function() { var Confirm = confirm("Are you sure?"); if (Confirm == true) { //Your Confirm code } });


检查这个l墨水

消息框 - 对话框 [ ^ ]
check this link
messagebox-dialogue box[^]


这篇关于如何将确认消息框与是否按钮而不是确定取消按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆