How to develop confirmation dialog with yes no button using jquery or any other method ? I need that confirmation when I click on submit button.
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
Use the native browser confirm dialog.
This will give you both a native JS and jQuery version:
Two different ways to use it. These work on links or Submit inputs.
JavaScript:
jQuery:
Note that in either version you can customize the confirmation message by passing a string parameter.
I have a solution, it is working for me.