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 | 190 | September 4, 2007 | |
confirmation dialog on a submit button | 0 | 149 | February 16, 2007 | |
onclick in submit_tag ? | 0 | 218 | December 8, 2006 | |
Confirm option on submit_tag -- not working | 2 | 213 | June 28, 2008 | |
onclick in submit_tag ? | 0 | 105 | December 9, 2006 |