Get in touch

Let’s make learning smarter with technology and teamwork

') wrapper.append($this.find('.elementor-field-type-submit')) // Show inline field errors form.find('input, textarea').on('invalid', function(e){ e.preventDefault() if( $(this).val() == '' ){ $(this).closest('.elementor-field-group').find('.elementor-message').remove() $(this).after('' + getCSSValue($this, '--empty-error', 'This field is required.') + '') } if( $(this).attr('type') == 'email' && !validateEmail($(this).val()) ){ $(this).closest('.elementor-field-group').find('.elementor-message').remove() $(this).after('' + getCSSValue($this, '--email-error', 'This is not a valid email.') + '') } removeFormError(form) }) form.find('input, textarea').on('focus', function(){ $(this).closest('.elementor-field-group').find('.elementor-message').remove() removeFormError(form) }) // Show form result message form.on('submit', function(){ submitInterval = setInterval(function(){ if( form.find('.elementor-form-fields-wrapper + .elementor-message').length ){ clearInterval(submitInterval) if( form.find('.elementor-form-fields-wrapper + .elementor-message').hasClass('elementor-message-success') ){ setTimeout(function(){ removeFormError(form) },2000) } } },1000) }) }) })