I'm creating a laravel app whereby if user send a request you have to confirm by clicking a button. Which is the best method to implement that. Can somebody help me please.
Asked
Active
Viewed 288 times
2 Answers
1
If its a form request you can just add to the Button-Element a onclick="return confirm('Are you sure?')" like so:
<button onclick="return confirm('Are you sure?')"> Send Request </button>
a Popup Window will ask you for confirmation

IboJaan
- 63
- 7
0
The best way to do this would be using JavaScript. You can easily achieve this with JQuery.
Have a look at this, I think this is what you need: form confirm before submit

Stevie B
- 31
- 3