How to show confirmation prompt while deleting row in Laravel.

It’s always better to ask for the confirmation while deleting items with alert prompt. So here I am gonna show you, how to show the confirmation prompt with Javascript within your Laravel application.

HTML for delete button

If you seen below code, $items is iterable object, its generating likes for all the available items.

Javascript to show the confirm prompt

Place below javaScript in your page footer area.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

9 Comments

Leave a Reply

Your email address will not be published.