CONNECT WITH:

Florida Bulldog

9/11 Articles

×

Subscribe to our Newsletter

Email
*

First Name

Last Name

const form173499136 = document.getElementById('email_signup_form173499136'); console.log(form173499136); const message173499136 = document.getElementById('signup_message173499136'); form173499136.addEventListener('submit', function(e) { // Prevent default behavior: e.preventDefault(); // Create payload as new FormData object: const payload = new FormData(form173499136); // Post the payload using Fetch: fetch('https://www.floridabulldog.org/wp-json/rsvpmaker/v1/rsvpmailer_signup/@FlSQ(!eqX2D', { method: 'POST', body: payload, }) .then(res => res.json()) .then(data => alert(data.message)) })