This one works!!! Do not forget { <%= submit_tag value='OK',{:onclick => "return confirm('Are you sure you want to delete this article?')" }%>
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How can i add a confirmation dialog to a submit_tag? | 0 | 191 | September 4, 2007 | |
confirmation dialog on a submit button | 0 | 150 | February 16, 2007 | |
onclick in submit_tag ? | 0 | 220 | December 8, 2006 | |
Confirm option on submit_tag -- not working | 2 | 216 | June 28, 2008 | |
onclick in submit_tag ? | 0 | 108 | December 9, 2006 |