That is cool Wilson! It is always amazing to learn new stuff.
A simple thing that you could do is just ask the user if he is sure he wants to delete an item.
At the delete function, you can store the result of a confirm (it's already from Javascript, it will appear as a confirm box on the browser) and just continue with the deletion if the result is true, like this:
var sure = confirm("Are you sure you want to delete?");
if (sure) {
//continue with delete code
}
That is cool Wilson! It is always amazing to learn new stuff.
A simple thing that you could do is just ask the user if he is sure he wants to delete an item.
At the delete function, you can store the result of a confirm (it's already from Javascript, it will appear as a confirm box on the browser) and just continue with the deletion if the result is true, like this:
var sure = confirm("Are you sure you want to delete?");
if (sure) {
//continue with delete code
}
And this project it's a great starter! Congrats!
Thanks, this works very well.