如何使用jQuery开发是没有确认 [英] how to develop yes no confirmation using jquery

查看:202
本文介绍了如何使用jQuery开发是没有确认的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用jquery或任何其他方法开发具有是"或否"按钮的确认对话框? 当我点击提交按钮时,我需要确认.

How to develop confirmation dialog with yes no button using jquery or any other method ? I need that confirmation when I click on submit button.

推荐答案

使用本机浏览器确认对话框.

Use the native browser confirm dialog.

if(confirm("Are you sure?"))
{
    //Ok button pressed...
}
else
{
    //Cancel button pressed...
}

这篇关于如何使用jQuery开发是没有确认的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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