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

how to validate a form with javascript before eldarion submits #68

Open
oppianmatt opened this issue Jun 5, 2014 · 0 comments
Open

Comments

@oppianmatt
Copy link

If a form has been marked 'ajax' with a class. It seems you can no longer validate it with a on('submit') handler if the eldarion-ajax handler attached first.

The on submit handler still runs but by that time eldarion-ajax has already submitted the from. So returning false of event.preventDefault is of no use to stop it.

Maybe a data attribute with a javacsript function to run to validate first?

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