uery confirm code example
Example 1: jquery alert with yes no
if (confirm('Are you sure ?')) {
console.log('ok');
}else
{
console.log('cancel')
}
Example 2: jconfirm button
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>