Skip to content

Instantly share code, notes, and snippets.

@AvgustPol
Created March 4, 2019 16:14
Show Gist options
  • Save AvgustPol/1385e10e71b75ce3e04d124ebb1675f7 to your computer and use it in GitHub Desktop.
Save AvgustPol/1385e10e71b75ce3e04d124ebb1675f7 to your computer and use it in GitHub Desktop.
input with confirm JS
<input
type="submit" // 'submit' type is necessary because this request is handling by OnPost handler
value="Delete" // text value for button
class="btn btn-danger form-control" // bootstrap classes
onclick="return confirm('Are you sure you want to delete this?')" // confirm JS code
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment