jQuery(document).ready(function($){

    $(document).on('click', '#accommodation-rental-welcome-notice .notice-dismiss', function(){

        $.ajax({
            type: 'POST',
            url: ajaxurl,
            data: {
                action: 'accommodation_rental_dismiss_notice'
            }
        });

    });

});