所以我有一个选择选项字段,我会更改选择字段的确认信息选项。我的问题是如何在取消确认消息后防止更改选择字段的值。 $('.changeScoreFem').on('change', function(){
if (confirm('Are you sure to change this score?')) {
//continue to change the value
我正在使用名为jQquery.confirm的第三方jQuery库。它提供了jQuery中的对话框。当点击某一类的按钮,我想用confirm()功能,为用户带来了确认: $(".btn-danger").click(function(event) {
//Prevent the button from being clicked.
event.preventDefault();