Services
Solutions
Industries
Regions
Book a call 085 369 7668 info@neddev.com

Postcodeveld dat schudt

A postcode field that shakes briefly, turns red and says what is wrong on invalid input; with a valid postcode it tidies up the notation.

Vier cijfers en twee letters.

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.
<!-- Postcodeveld dat schudt · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<form class="hrvs" novalidate><label class="hrvs__lab">Postcode van het afleveradres</label><div class="hrvs__rij"><input class="hrvs__in" name="postcode" type="text" autocomplete="postal-code" placeholder="2511 AB" maxlength="8" spellcheck="false"><button class="hrvs__btn" type="submit">Controleer</button></div><p class="hrvs__msg" aria-live="polite">Vier cijfers en twee letters.</p></form>
</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 →