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 | 198 | September 4, 2007 | |
| confirmation dialog on a submit button | 0 | 156 | February 16, 2007 | |
| onclick in submit_tag ? | 0 | 227 | December 8, 2006 | |
| onclick in submit_tag ? | 0 | 114 | December 9, 2006 | |
| Confirm option on submit_tag -- not working | 2 | 223 | June 28, 2008 |