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