; (function ($){
"use strict";
var $widgetsubscribeForm=$('form.newsletter-form');
$widgetsubscribeForm.on('submit', function (e){
let $emailAdd=$(this).find('input[type="email"]').val();
$.ajax({
type: 'POST',
url: wellnezajax.action_url,
data: {
sectsubscribe_email: $emailAdd,
security: wellnezajax.nonce,
action: 'wellnez_subscribe_ajax'
},
success: function (data){
$('form.newsletter-form input[type="email"]').val('');
$('.newsletter-form').append(data);
},
error: function (){
$('.newsletter-form').append('<div class="alert alert-danger mt-2" role="alert">Something Goes Wrong</div>');
}});
e.preventDefault();
});
})(jQuery);