jQuery(document).ready(function($) {

    $(document).on('click', '.notice-theme-info-class .notice-dismiss', function() {

        var notice = $(this).closest('.notice-theme-info-class');

        $.ajax({
            type: 'POST',
            url: ajaxurl,
            data: {
                action: 'marriage_counseling_dismiss_notice'
            },
            success: function(response) {
                if (response.success) {
                    notice.fadeOut();
                }
            }
        });

    });

});