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