Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
581
Widok
0
01/09/2022 12:58 pm
Topic starter
example code
1 Answer
0
01/09/2022 12:59 pm
Topic starter
$(function () { $(".confirm,.confirmation").click(function (e) { if (!confirm()) { e.preventDefault(); return; } }); })
how to use:
- add class="confirm" to any clickable element
- NO response - any redirect or code will be prevent from execution
- YES response - proceed with any default reaction/code