Get started with jquery-confirm CDN
MIT licensed
JQuery Confirm is a lightweight plugin that provides customizable and responsive confirmation dialogs in web applications using jQuery.
Tags:- jquery-plugin
- jquery
- confirm
- alert
- dialog
Stable version
Copied!
How to start using jquery-confirm CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with jquery-confirm CDN - cdnhub.io</title>
<!-- Add jQuery library -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- Add jquery-confirm CDN -->
<script src="https://cdn.cdnhub.io/jquery-confirm/3.3.4/jquery-confirm.min.js"></script>
<style>
.confirm-button {
margin-right: 10px;
}
</style>
</head>
<body>
<button id="confirm-button" class="confirm-button">Confirm</button>
<script>
$(document).ready(function() {
$('#confirm-button').click(function() {
jQuery({
title: "Confirmation",
content: "Are you sure you want to proceed?",
type: "blue",
buttons: [
{
text: "Yes",
action: function() {
alert("You clicked yes!");
}
},
{
text: "No"
}
]
}).confirm();
});
});
</script>
</body>
</html>
Copied!
Copied!