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

Telefoonveld met landcode New

Phone field with a country picker (NL, BE, DE and more) that formats as you type, recognises the number type (mobile, landline with city) and validates. Pasting a +32 number switches the country. Native select plus small JS; in production use libphonenumber-js (MIT) for all countries.

Probeer

We bellen alleen over je afspraak.

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.
<!-- Telefoonveld met landcode · © 2026 NedDev BV · NedDev Lab-licentie (gratis gebruik, niet doorverkopen) · neddev.com/nl/lab/gebruik/#licentie -->
<div class="jouw-container">
<div class="tlc"><div class="tlc__in"><div class="tlc__card">
<div class="tlc__demo" role="group" aria-label="Voorbeelden invullen"><span class="tlc__demo-l">Probeer</span><button type="button" data-v="0612345678" data-c="NL">06-nummer</button><button type="button" data-v="0101234567" data-c="NL">Vast 010</button><button type="button" data-v="+32470123456">Belgisch</button><button type="button" data-v="06123" data-c="NL">Fout</button></div>
<label class="tlc__l" for="tlc-n">Telefoonnummer</label>
<div class="tlc__grp">
<span class="tlc__sw"><select class="tlc__sel" aria-label="Landcode"><option value="NL" selected>NL +31</option><option value="BE">BE +32</option><option value="DE">DE +49</option><option value="FR">FR +33</option><option value="GB">GB +44</option><option value="ES">ES +34</option><option value="TR">TR +90</option><option value="MA">MA +212</option><option value="SR">SR +597</option></select><svg viewBox="0 0 10 6" aria-hidden="true"><path d="M1 1l4 4 4-4"/></svg></span>
<input class="tlc__i" id="tlc-n" type="tel" inputmode="tel" autocomplete="tel-national" placeholder="06 1234 5678" aria-describedby="tlc-e tlc-s">
<span class="tlc__badge" aria-hidden="true"></span>
</div>
<p class="tlc__e" id="tlc-e"></p>
<p class="tlc__s" id="tlc-s">We bellen alleen over je afspraak.</p>
<p class="tlc__out" hidden>Opgeslagen als <code></code></p>
</div></div></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 →