-1

I have a table of users.

There is a button to delete a user.

When I click the Delete button I want to display a dialog that gives the user the option to cancel the deletion.

<button  class='btn btn-danger' title='Delete User' name='action' value='deleteUser'>

My web application uses:

  • php
  • c9.io
jwpfox
  • 5,124
  • 11
  • 45
  • 42
j.mac
  • 1

1 Answers1

0

Take a look at window.confirm:

if (window.confirm('Do you really want to delete the selected user?')) {
  // handle delete
} 
Johnny Bueti
  • 637
  • 1
  • 8
  • 27