Your wedding day is one of the most memorable events of your life, and every detail counts—especially your grand entrance. The wedding procession sets the …
In the world of weddings and special events, there’s a growing trend that combines art, creativity, and storytelling: live illustrations and sketch artists. These talented …
document.addEventListener('DOMContentLoaded', function () {
const form = document.querySelector('.wpcf7 form'); // Contact Form 7 form selector
if (form) {
form.addEventListener('submit', function () {
const phoneField = form.querySelector('.phone-field'); // Target phone field by class
if (phoneField) {
let phone = phoneField.value.replace(/\D/g, ''); // Remove all non-numeric characters
if (phone.length === 10) {
// Format the phone number as 123-456-7890
phoneField.value = phone.replace(/(\d{3})(\d{3})(\d{4})/, '$1-$2-$3');
}
}
});
}
});