We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9db86bf + 9323ed0 commit 287adabCopy full SHA for 287adab
assets/js/main.js
@@ -196,9 +196,11 @@
196
// Ensures valid email is supplied
197
$(".subscribe").click(function () {
198
if (/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(document.getElementById('email').value)) {
199
- document.getElementById('email').value = "Thank you for subscribing to our newsletters."
+ document.getElementById('email').value = ""
200
+ document.getElementById('email').placeholder = "Thank you for subscribing to our newsletters."
201
} else {
- document.getElementById('email').value = "Please enter a valid email address."
202
203
+ document.getElementById('email').placeholder = "Please enter a valid email address."
204
}
205
});
206
})(jQuery);
0 commit comments