Is it possible to implement data-confirm in a form, similar to how you can in a link?
I tried the following, but it doesn’t work.
<%= form_for @changeset, @action, fn f -> %> # other code removed <%= submit "Submit", class: "btn btn-primary", data: [confirm: "Really?"] %> </div> <% end %>
I know with a link you can use code like this:
<%= link "Delete", to: fantasy_team_path(@conn, :delete, fantasy_team), method: :delete, data: [confirm: "Are you sure?"], class: "btn btn-danger btn-xs" %>
Can you use a link instead of submit within your form? Or is there another way to implement it? I would also like to implement data-disable in my form, if that is possible.
Thanks for any help you can provide!