I have a form and a submit button, I try to display a confirmation
dialog before the submit button trigger the action, (it confirmation is
negatif, action will not be triggered.) I know I can to this with
link_to( :confirm=>‘sentence?’) but can I do the same thing with a
normal submit button, and how???
Apologies… I misread your request. Ignore my previous suggestion.
That was for a modal dialog with a form that you’d like to submit via
an AJAX request.