Displaying 1 result from an estimated 1 matches for "remove_person".
2005 Jul 24
0
submit tag confirm
Well, hmm...
I can get a nice javascript confirm with the link_to helper like this:
<%= link_to("remove", {:action => "remove_person", :etc etc},
{:confirm => "Are you sure?"}) %>
But if I try something similar in a submit tag, the javascript does not work:
<%= submit_tag("Remove Person", {:confirm => "Are you sure?"})%>
Is this function not implemented in the submit tag helper...