Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ccApp.checkRecaptcha = function($form) {
- res = $form.find('.g-recaptcha-response').val();
- if (res == "" || res == undefined || res.length == 0)
- return false;
- else
- return true;
- }
- $(document).on('submit', '.ajax-form', function(event) {
- var $form = $(this);
- if(!ccApp.checkRecaptcha($form)) {
- alert('Por favor, marque a caixa "Não sou um robô"');
- return false;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement