$(document).ready(function() { $(".areyousure").on("click", function(e) { if(!confirm("Êtes-vous sûr ?")) { e.preventDefault(); } }) });