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