Is it possible to put a simple form submit button inside the bootstrap popover on button click.
I have my devise sign up form inside a bootstrap modal. The sign up form is done with simple form.
The submit button is:
<div class="form-actions">
<%= f.button :submit, "Sign up" %>
</div>
I want to add a popover so when the user clicks sign up, the get a popover with a message along the following lines.
<button type="button" class="btn btn-default" data-container="body" data-toggle="popover" data-placement="right" data-content="Thanks! We've received your details and will be in contact soon to get started.">
Sign up
</button>
Can I change the tag from <button type>
to a div class
with all the elements for the popover and put that inside the f.button
? I saw simple form has initialisers for some bootstrap functions - but it seems that a popover isn't one of them.
Thank you