Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

By default if you pass both an hotel and chain, the hotel will be prioritised. You can use this to make a hotel selector.

Info

View a demo in Codepen.

Code Block
languagehtml
<form method="post" action="https://scripts.hoteliers.com/api/v1/book-form" target="_blank" class="hoteliers-book-form">
    <!-- Put chain hotel here -->
    <input type="hidden" name="chain" value="36">
    
    <!-- Add select with hotels -->
    <select name="hotel">
      <option value="">All Hotels</option>
      <option value="8">Demo hotel 1</option>
      <option value="2270">Demo hotel 2</option>
    </select>
    
    <button type="submit" class="hoteliers-book-form__button">Book now</button>
</form>

...