Confirm dialogs for buttons and links using jQuery and Bootstrap
I tried using submitForm but it raises TypeError: Cannot read property 'value' of undefined, and from looking at the source code its not for this situation (it creates a form on the fly and not sends the existing one).
JS code is a simple $(".confirm-post").confirm(); - I tried playing with post, submitForm and confirm but with no success
$(".confirm-post").confirm(); is just for links, I think submitForm is the option you need. It's been a while since I've had a look at the code so I can't help you much
Sending a form on confirm was the closest I got but it created a problem with not knowing which button was pressed.
Cause IMHO, dataOptions should be overriding options given that it's really related to only one element thus more specific.
Is it possible to use this as an alert with only one button?
Soon when I will update readme on my PR #71
@AnrietteC PR updated, you can take it from my repo before it is merged if you want to.
I'm having some issues with confirm in older browser versions. Still waiting for feedback of my customer. Anyway it looks like the project is no longer maintained @mnapoli ? https://github.com/myclabs/jquery.confirm
@webdevilopers yes I don't have time to maintain it, if you want to be added as maintainer let me know
Sorry @mnapoli but I'm not really into frontend :smile: Can you recommend any alternative?
Update your browser ? :trollface: More seriously, on which browser/version do you have some issues ?
still waiting for the customer to respond. this demonstrates how important these issues are if the customer needs that long :)
Hey, anyone knows, how can we handle keystroke event?
I want to fire confirm event on click of ENTER key