Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('form').submit(function(event) {
- event.preventDefault();
- ...
- // Código Ajax que não deve ser executado caso a validação falhe...
- });
- $('#botao').on('click', function() {
- $('form').submit();
- ...
- // Código Ajax que não deve ser executado caso a validação falhe...
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement