t4t5 / sweetalert

A beautiful replacement for JavaScript's "alert"
https://sweetalert.js.org
MIT License
22.39k stars 2.84k forks source link

Replacing window.confirm with sweetalert #907

Open marcoczen opened 5 years ago

marcoczen commented 5 years ago

Hi ... Currently in my php/html/bootstrap form I have a button as follows ...

``

``

So how do i replace this part with sweetalert ?

onclick="return window.confirm('Confirm Edit ? Proceed ?')"

Sorry if i couldnt understand this from your documentation ...

prwinkmr commented 4 years ago

Use call back function

marcoczen commented 2 years ago

@prwinkmr

Hi, I am sorry that i did not get back on this. Not sure why. Do you have an example code ? Sorry once again ...