[mphb_checkout] number of guests for services

  • This topic has 16 replies, 4 voices, and was last updated 2 years ago by Felizia Katzer.
Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #1394473
    Mickael Quirin
    Participant

    here you go

    (function ($) {
    	$(document).ready(function() {  
            $('.mphb_checkout-guests-chooser').change(function(){
                let booking_number = $(this).attr('id').split('-')[1];  
                let selector = 'select[id^=mphb_room_details-' + booking_number + '-service]';
                $(selector).val($(this).find("option:selected").attr('value')).trigger("change");
            });
         });
    })(jQuery);

    tell me if that fix your issue

    #1394475
    Felizia Katzer
    Participant

    yes perfect, thank you for your help. now it works 🙂

Viewing 2 posts - 16 through 17 (of 17 total)
  • You must be logged in to reply to this topic.