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