Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work when formaction is used on HTML5 button #71

Open
amitherlekar opened this issue Jan 16, 2018 · 0 comments
Open

Does not work when formaction is used on HTML5 button #71

amitherlekar opened this issue Jan 16, 2018 · 0 comments

Comments

@amitherlekar
Copy link

amitherlekar commented Jan 16, 2018

I have this form:

<form action="#" method="post">
	<button class="btn-update btn-action confirmation" type="submit" formaction="/subscriptions/1/initiate-activation">Initiate Activation</button>
        <button class="btn-delete btn-action " type="submit" formaction="/subscriptions/1/delete">Delete Subscription</button>
</form>

And I have initialized bootstrap-confirmation on class confirmation using jQuery. When the button Initiate Activation is clicked and confirmed, the form is submitting to # instead of /subscriptions/1/initiate-activation

Bootstrap-Confirmation initialization with jQuery:

<script type="text/javascript" >
	//Initialize bootstrap confirmation
	$('.confirmation').confirmation({
		popout: true, 
		placement: 'top',
		singleton: true
	});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant