I use the JQuery plug-in Messi to display some alert boxes.
I want to go on the previous page when I click on the "Yes" button:
$('#yes-no-cancel-buttons').on('click', function() {
new Messi('Voulez-vous vraiment annuler toutes les modifications effectuées ?', {title: 'Retour', modal:true, buttons: [{id: 0, label:
'Yes', val: 'Y', btnClass: 'btn-danger'}, {id: 1, label: 'No', val:
'N', btnClass: 'btn-success'}, ]});
});
Unfortunately I just begin in Javascript and Jquery and don't really know how to do this.