How to show confirmation prompt while deleting row in Laravel.

/ By Arjun / Published on June 3, 2017

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.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x