Say helloOR
Namaste
Bonjour
Salut
Guten Tag
Konnichiwa
Nǐ Hǎo
We speak a few languages.
//bootstrapValidate('.input-required', 'required:This field is required');
//bootstrapValidate('#Field12', 'email:Enter a valid email address');
//bootstrapValidate('#Field3', 'integer:Enter a valid phone number!');
/* bootstrapValidate('#Field1', 'required:This field is required');
document.addEventListener('DOMContentLoaded', function() {
bootstrapValidate('#Field3', 'email:Enter a valid email address');
});*/
/*
document.addEventListener('DOMContentLoaded', function() {
console.log("Applying bootstrapValidate rules...");
// bootstrapValidate('.input-required', 'required:This field is required');
bootstrapValidate('#Field12', 'email:Enter a valid email address');
bootstrapValidate('#Field13', 'integer:Enter a valid phone number!');
});
*/
document.addEventListener('DOMContentLoaded', function() {
bootstrapValidate('#Field1', 'required:This field is required');
bootstrapValidate('#Field1', 'regex:^([A-Z a-z.]+)$:Please enter your full name');
//bootstrapValidate('#Field3', 'email:Enter a valid email address');
bootstrapValidate('#Field4', 'regex:^([0-9 .\\-\\+]+)$:Please enter your phone number');
bootstrapValidate('#Field5', 'regex:^([A-Z 0-9 a-z.\\-_&]+)$:Please enter your company name');
document.getElementById('form239').addEventListener('submit', function(event) {
if (!event.target.checkValidity()) {
//console.log("inside");
event.preventDefault(); // Prevent form submission if any field is invalid
event.target.reportValidity(); // Show validation errors
}
//console.log("outside");
//event.preventDefault();
});
});