WILL YOU ATTEND?
Yes
No
SUBMIT
// Javascript to send ajax request
jQuery(document).on(‘submit’, ‘.custom-form-class’, function(e){
let formData = jQuery(this).serialize();
// Change ajax url value to your domain
let ajaxurl = ‘
http://YOURSITE.COM/wp-admin/admin-ajax.php’;
// Send ajax
jQuery.post(ajaxurl, formData, function(response) {
alert(‘Got this from the server: ‘ + response);
});
});