javascript for deleting the id and showing the alert popup for confirmation code example
Example: How to show confirm message before delete using jquery
<button onclick="return confirm('Are you sure you want to Delete?');"
id="btnDelete">DELETE</button>