jQuery universal delete confirm "are you sure" box


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('.delete').click(function (){
  2. var answer = confirm("Are you sure?");
  3. if (answer) {
  4. return true;
  5. }else{
  6. return false;
  7. }
  8. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.