This code works fine for me, but I don't need the alert and don't wanna uncheck the checkbox again, I tried change false to true and erase the message but it doesn't work.
$("#test").on('change', function() {
this.checked=!this.checked?!confirm('Really uncheck this one ?'):true;
});
Aucun commentaire:
Enregistrer un commentaire