jQuery(document).ready(function ($) {
    // When the notice is dismissed
    $(document).on('click', '.expert-cleaning-notice .notice-dismiss', function () {
        $.post(ajaxurl, {
            action: 'expert_cleaning_dismiss_notice'
        });
    });
});