Home Work
SaaS developmentAI developmentAPI developmentMobile app developmentGoogle Ads managementHeadless ShopifyLaravel developmentNext.js developmentReact developmentTypeScript engineeringUI/UX designSEO & AEOEcommerce development
AI solutionsB2B platformsE-commerceHospitalityLead generationLogisticsEducationProcess automationSaaS platformsStartup MVPReal estateHealthcare
LegalHealthcareReal estateFinanceHospitality
The HagueRotterdamAmsterdamUtrechtEindhovenAlmereBredaArnhemNijmegenTilburgEnschedeGroningenLeidenDelftZoetermeerDen Bosch
Studio
AboutProcessLabBlogContact

Combobox diensten en plaatsen New

Accessible autocomplete following the ARIA combobox pattern: searches services and places, shows a type icon per row with the match in bold, works with arrows, Enter and Esc, and has a proper no-results state. Demo data lives in the code; in production connect places to the PDOK Locatieserver.

Probeer:

How to use it

  1. Paste the HTML where the forms & inputs should appear.
  2. Add the CSS to your stylesheet. All classes are prefixed, so nothing clashes with your own styles.
  3. Add the JavaScript and call init() with the element that contains the HTML.
<!-- Combobox diensten en plaatsen · NedDev · eigen werk. -->
<div class="jouw-container">
<div class="cbd">
<label class="cbd__label">Wat zoek je, en waar?</label>
<div class="cbd__field">
<svg class="cbd__mag" viewBox="0 0 20 20" aria-hidden="true"><circle cx="8.5" cy="8.5" r="5.5"/><path d="M13 13l4 4"/></svg>
<input class="cbd__input" type="text" role="combobox" aria-autocomplete="list" aria-expanded="false" autocomplete="off" spellcheck="false" placeholder="Dakdekker, Rotterdam, badkamer...">
<div class="cbd__pop" hidden><p class="cbd__group"></p><ul class="cbd__list" role="listbox"></ul><div class="cbd__none" hidden><svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="10.5" cy="10.5" r="6.5"/><path d="M15.5 15.5l5 5M8 8l5 5M13 8l-5 5"/></svg><p><b>Niets gevonden voor "<span class="cbd__nterm"></span>"</b><span>Zoek op een vak (bijv. schilder) of op je woonplaats.</span></p></div></div>
</div>
<p class="cbd__hints"><span>Probeer:</span><button type="button" class="cbd__hint">dak</button><button type="button" class="cbd__hint">rotter</button><button type="button" class="cbd__hint">badkamer</button><button type="button" class="cbd__hint">kozijn</button></p>
<p class="cbd__chosen" aria-live="polite"></p>
<span class="cbd__sr" aria-live="polite"></span>
</div>
</div>

More forms & inputs

Seen something you like?

Add it to your selection and send it over. We build your site around it, in your brand.

Get in touch →