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

Init on contact form validation? #76

Open
rmiller61 opened this issue Jul 30, 2015 · 1 comment
Open

Init on contact form validation? #76

rmiller61 opened this issue Jul 30, 2015 · 1 comment

Comments

@rmiller61
Copy link

I am using avgrund for when my contact form is submitted. Right now it's set to display when the submit button is clicked, but I want it to init ONLY if the form is validated (if the required fields have been filled out).

I've tried two a few ways so far to no avail:

$('#submit').avgrund({setEvent: 'submit'});
$('#submit').avgrund({onLoad: function{$('#submit').hasclass('valid')}});
wrapping the avgrund function in the conditional statement if $('#submit').hasclass('valid')
Any suggestions?

@rmiller61
Copy link
Author

it seems onLoad would be the way to go maybe I'm not doing it right?

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