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