Title: Subscription Widget Submit
Last modified: September 29, 2020

---

# Subscription Widget Submit

 *  Resolved [Sanjeet Sagar](https://wordpress.org/support/users/rohaan9/)
 * (@rohaan9)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/subscription-widget-submit/)
 * Hello
    I have added Subscription Widget on WordPress successfully. when i endter
   email and hit subscribe button it now showing any process. currently its showing
   direct sucesss or error message.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [kiw808](https://wordpress.org/support/users/kiw808/)
 * (@kiw808)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/subscription-widget-submit/#post-13557352)
 * Pretty much the same problem in my case. My subscribe form renders in a widget,
   but when I hit the subscribe button nothing happens …
 *  Thread Starter [Sanjeet Sagar](https://wordpress.org/support/users/rohaan9/)
 * (@rohaan9)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/subscription-widget-submit/#post-13557468)
 * I have fixed my self by override js and added
 *     ```
       beforeSend: function(){
       $('.mailjet_widget_form_message').html('<i class="fa fa-spinner fa-pulse fa fa-fw margin-bottom"></i>');
       },
       ```
   
 * here is code full code
 *     ```
                jQuery(document).ready(function() {
                   //option A
                   jQuery("form#mailjetSubscriptionForm").submit(function(event){
                       event.preventDefault();
       				            const form = $(this);
                   const message = $('.mailjet_widget_form_message');
                   jQuery.ajax({
                       url : mjWidget.ajax_url,
                       type : 'post',
                       data : form.serializeArray(),
       				beforeSend: function(){
       				$('.mailjet_widget_form_message').html('<i class="fa fa-spinner fa-pulse fa fa-fw margin-bottom"></i>');
       				},
                       success : function(response) {
                           message.text(response);
                       },
                       error : function(err) {
                           message.text('An error occurred.');
                       }
                   });
                   });
               });
       ```
   
    -  This reply was modified 5 years, 7 months ago by [Sanjeet Sagar](https://wordpress.org/support/users/rohaan9/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Subscription Widget Submit’ is closed to new replies.

 * ![](https://ps.w.org/mailjet-for-wordpress/assets/icon.svg?rev=2994192)
 * [Mailjet Email Marketing](https://wordpress.org/plugins/mailjet-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailjet-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailjet-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/mailjet-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailjet-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailjet-for-wordpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sanjeet Sagar](https://wordpress.org/support/users/rohaan9/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/subscription-widget-submit/#post-13557468)
 * Status: resolved