jQuery("body").on("click", '#launch-coming-soon-welcome-notice .notice-dismiss', function (event) {
    event.preventDefault();

    jQuery.ajax({
      type: 'POST',
      url: ajaxurl,
      data: {
          action: 'launch_coming_soon_dismissed_notice',
          nonce: launchComingSoonNotice.nonce,
      },
      success: function () {
          // Remove the notice on success
          $('.notice[data-notice="example"]').remove();
      }
    });
  }
)