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