Unverified

Name

Elementor Email Verfication

Language

HTML

Rating

Voted: 0 by 0 user(s)

Codevault

WebSquadron

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.4

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

18/08/2024

Important Note

This snippet has the following status:

Unverified

This snippet has not been verified, use with caution and at your own risk. See details provided by author in sidebar and click below to find out more.

Elementor Email Verfication

 
                    
1<script>
2 document.addEventListener('DOMContentLoaded', function() {
3 // Get the form fields
4 var emailField = document.getElementById('form-field-email');
5 var emailCheckField = document.getElementById('form-field-email_check');
6 // Find the HTML field - assuming it follows immediately after the email fields
7 var htmlFields = document.querySelectorAll('.elementor-field-type-html');
8 var emailConfirmField = htmlFields[0]; // Adjust index if you have multiple HTML fields
9 var submitButton = document.querySelector('.elementor-button');
10 
11 function validateEmails() {
12 if (emailField.value === emailCheckField.value) {
13 emailConfirmField.innerHTML = "<span style='color: green;'>Email entered successfully.</span>";
14 submitButton.disabled = false;
15 } else {
16 emailConfirmField.innerHTML = "<span style='color: red;'>Emails must match.</span>";
17 submitButton.disabled = true;
18 }
19 }
20 
21 // Check emails on input
22 emailField.addEventListener('input', validateEmails);
23 emailCheckField.addEventListener('input', validateEmails);
24 
25 // Initially disable the submit button
26 submitButton.disabled = true;
27});
28 
29</script>

0

Related Snippets

Please see some snippets below related to this snippet..

Elementor

Unverified

1

Change image on hover - Elementor

Added: 2 years ago

Last Updated: 11 months ago

JQuery code snippet that changes image on hover

Elementor

AI Verified

0

Elementor Repeater Field Comma Separated

Added: 7 months ago

Last Updated: 7 months ago

Elementor

AI Verified

1

PHP: Remove image sizes (controls) from Elementor image dropdowns

Added: 1 year ago

Last Updated: 11 months ago

<p>Since we disable the generation of images besides the original upload, the Elementor controls aren't relevant. This doesn't disable controls on all widgets, unfortunately — but it does remove them...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Performance

AI Verified

35

Remove Unused Javascript

Added: 2 years ago

Last Updated: 1 week ago

Remove Unused Javascript - and improve your Page Speed Insight Score

WooCommerce

Pro Verified

10

Deactivate some WooCommerce Checkout Fields

Added: 2 years ago

Last Updated: 2 months ago

Deactivate some WooCommerce Checkout Fields from showing

Elementor

AI Verified

6

CSS Grid Aid

Added: 10 months ago

Last Updated: 3 months ago

This can be used for any WordPress Builder to aid working with CSS Grids.