-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
  • 4,964
  • 11
  • 44
  • 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
  • 587
  • 1
  • 7
  • 26