“Konfirmasi pesan di jQuery” Kode Jawaban

Konfirmasi pesan di jQuery

<a href="/" id="aaa">Delete</a>
//jquery code
$(document).on('click', '#aaa', function(){
	var result = confirm('Do you want to perform this action?');
    if(!result){
    	return false;
    }
})
Isaac

contoh dialog konfirmasi jQuery

$("#complexConfirm").confirm({
    title:"Delete confirmation",
    text:"This is very dangerous, you shouldn't do it! Are you really really sure?",
    confirm: function(button) {
        alert("You just confirmed.");
    },
    cancel: function(button) {
        alert("You aborted the operation.");
    },
    confirmButton: "Yes I am",
    cancelButton: "No"
});
Ugliest Unicorn

Jawaban yang mirip dengan “Konfirmasi pesan di jQuery”

Pertanyaan yang mirip dengan “Konfirmasi pesan di jQuery”

Lebih banyak jawaban terkait untuk “Konfirmasi pesan di jQuery” di JavaScript

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya